Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
I have an infinite flying game. And I need to make mirroring of the player sprite when it goes right or left.
Keyboard - On Left Arrow Is Down - Player Set Mirrored
Pretty simple to do....
I found the best practice to give objPlayer an instance variable (isMirrored > boolean > false).
Because here you can set events and check if he is looking right or left - like
if objPlayer isMirrored then ...
Develop games in your browser. Powerful, performant & highly capable.
fm4fanAT
Yup I thought of that after i posted lol I do the same thing just wasnt thinking at the time lol
But how can I do this on touchscreen?
First you add touch to your project by double clicking your layout and select touch. Then in the event sheet, click add event and go to touch. There you can select the action you want, just like the keyboard example.