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
I have an infinite flying game. And I need to make mirroring of the player sprite when it goes right or left.
Develop games in your browser. Powerful, performant & highly capable.
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 ...
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.