Hi,
I'm new to game development and everything coding and I'm trying to make a prototype of a 2d platformer.
I've created two animations for each basic action like idling, running or jumping, whether the player is facing left or right, due to the character carrying a sword in one hand (flip h is not viable).
So how do I detect which way the player is facing in order to trigger the "jump facing left" or "jump facing right" animation? For running and idling is easy, just use actionpressed("uiright/left") and actionjustreleased("ui_right/left") respectively. But for actions like jumping or attacking you just can't do it like that.
I'm using the node AnimatedSprite.
Thanks