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....
Develop games in your browser. Powerful, performant & highly capable.
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.