Hi!
Was wondering if there is a way to compare the X or Y speed so when (example) the character is moving down, that the character is facing that way. I am working with touch controls and is having a rough time figuring it out. I know that there is an action where you compare the y co-ordinate but isn't one for speed. I use Rex's Plugin "MoveTo" behaviour for the touch input if that helps.
Have a look at the behaviours "Compare moving angle" ?
Will check it out when I get home but looks like what I need!
I should have said
Method 1 will turn ship 90 degrees (n,e,s,w)
method 2 will point ship in direction travelled
only use one of the methods
also I was using mouse so just replace mouse with touch.
I tweaked the first method so it works with the animations but they don't change while I am touching the screen. When I initate they change but if I change angle it stays in the same animation frame as before. I have four animation frames at the moment which is a 2d character facing north,east,south,west so it is not about rotating it but changing the frame at the desired direction he is moving (just to clarify).
Develop games in your browser. Powerful, performant & highly capable.
yep, look at where I am setting angle and add the correct frame animation there