How to make a moving 2d sprite rotate while turning left and right?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GrudgeofSanAndreas

I’ve been using Godot for 3 days but i still can’t figure out how to make my sprites rotate when turning left and right while moving
In fact, long story short i want them to move like in Tank Trouble flash game, idk how else to describe my problem :confused:

EDIT: I forgot to say that i’m a little bit in a hurry to release my first demo this summer and i want handling to be exactly like in this video

it’s my first time i ever used a game engine and the documents only partly answered my question :frowning:

:bust_in_silhouette: Reply From: kidscancode

Have a look at the official docs. This tutorial describes how to implement a number of different 2D movement schemes, including rotate-and-move:

Tnx very much

GrudgeofSanAndreas | 2018-05-23 09:14

BAD NEWS: i tried it out in Kinematic Collision and a custom project and nothing happened

GrudgeofSanAndreas | 2018-05-23 09:56