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
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
How do i change the player sprite when using click to move in 4 directions?
Example: When clicking up the player sprite changes to the up animation. When clicking left or right it changes to those animations.
Click to move just changes the angle of the one sprite. How do i implement sprite change?
Develop games in your browser. Powerful, performant & highly capable.
you could measure the angle between the current position and the mouse poisition
angle(player.X, player.Y, Mouse.X, Mouse.Y)
so if it's between 0 and 90, change the animation frames to right, between 90 and 180 change to down etc...