Gravity in the direction device is tilted?
UtopianGames
Member Posts: 5,692
Trying to find a demo with gravity in all directions depending on the device position.
Imagine a ball and loads of platforms and the ball can fall in any direction, so if the device is twisted 180 degrees it falls up etc.
Hope you understand what i mean.
Darren.
Imagine a ball and loads of platforms and the ball can fall in any direction, so if the device is twisted 180 degrees it falls up etc.
Hope you understand what i mean.
Darren.
Comments
I am just in the process of finishing off a game kind of like what you are describing called Falling, however it always moves at the same speed and if you touch the side of the wall you die. It is a surprisingly fun way to play a game. Have you tried tHe dizzy Bee games because they are quite like what you described.
accelerate: vectorToAngle(device.accelerometerY, device.accelerometerX * -1)