Hello,
I am trying to make a game and I hit a snag.
I want:
- the ball to head off in a random direction. (Works)
- keep track of score/highscore the latter being persistent. (Works)
- When the ball hits the edge of the canvas, end the game and track the scores(s). (Works)
- Rotate the phone to change the heading of the ball, so you can delay it hitting the wall. (This is what I need help with)
- Future stuff - Difficulty levels, and changes in speed.
Regarding my issue, I tried all of the sensors (Gyro, Accel, etc.), But I can't figure out how to get the ball to maintain it's heading when the phone is turned. The best I got was heading changed by tilting the phone.
If anyone has an idea of what I am doing wrong, please tell me.
Baller.aia (28.8 KB)