Godot Version
Godot Engine v4.4.1.stable.steam.49a5bc7b6
Question
I am making a wall movement on my game, and i want the character sprite rotate according to the player’s velocity, does anyone has any ideas on how to do it?
My code for now:
func _wall_animate():
if Global.wallmovment:
if character_select == Character.Sonic:
$Sprite.play("running_wall(sonic)")
elif character_select == Character.Shadow:
$Sprite.play("running_wall(shadow)")
elif character_select == Character.Super_Shadow:
$Sprite.play("running_wall(super_shadow)")