Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
Develop games in your browser. Powerful, performant & highly capable.
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).
yep, look at where I am setting angle and add the correct frame animation there