Gravity Switch
applucinate
Member Posts: 5
Hey everyone, I´m trying to create a gravity based game. The basic idea is to have gravity´s direction switched between 270 and 90 degrees when the screen is touched. Any suggestions on how to achieve this behavior?
Comments
When Touch is pressed and Gravity is false, change Gravity to true
When touch is pressed and gravity is true, change Gravity to false
In your character
When gravity is true accelerate 270
otherwise
accelerate 90
Need Help? Email Me | Templates | Full Game Source Code