How to change an actor image depending on the position of the joystick?
isabelaq
Member Posts: 28
hello my question is, how to change an actor image depending on the position of the joystick, for example, I move the player to the left with the joystick, how can to change animation when the joystick it on the left and not the same image, and vice versa on the right?
Comments
See if that works.
which is an attribute already being set by the joysticks position
thanks again
So your rule would be
When game.angle is >45 and
When game.angle is <135
--Change image to up.png
Otherwise
When game.angle in >135and
When game.angle is <225
--Change image to left.png
Otherwise
and so on...