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
How do I switch direction of platform player on one tap?
left to right or vice versa
Develop games in your browser. Powerful, performant & highly capable.
Suggestion would be to check the x value of the touch. You could then simulate a left movement if touch x is less than player x. Opposite of course would be that a touch x greater than player x would simulate a right movement.
If you'd like to toggle on tap you could use a boolean variable on the player and toggle boolean on tap..
then have an event
if boolean = true - platform simulate pressing right
else - platform simulate pressing left
Awesome thanks the boolean works perfect.