Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | lavaduder | |
Old Version | Published before Godot 3 was released. |
I’ve been trying to get my character mesh to rotated based on the direction of my character. Like if I move up, it will face up, if I move left it will face left, If I go right and down it will face southeast.
How do I do this
P.S. It’s a spatial project.
Is it a top-down view or what? Otherwise that doesn’t make much sense. Anyway, all you need to do is define a loop in fixed process that rotates the character in each frame, then when you detect the input the rotation value will change depending on the key.
If you could provide at least a screen capture of your scene it would be great.
rredesigns | 2017-06-12 02:00