Hello guys, I just have a little problem due to lack of experience in Godot. I am new to Godot.
The problem occurred while I was making a 2D game in Godot. For the game, the camera is viewing from the sky downwards to the ground. My player (which is a kinematicbody2D) is viewed from the head position holding a gun.
The direction button up is used to make the player move forward while the down button is used to move the player backward. The right button is to rotate the player right and the left button is to rotate the player left.
I have no idea on how to make the player move forward according to the direction his head his facing and backward according to the direction his head is not facing while using gdscript.
If you can help me out on this I would be grateful.