Gravity in the direction device is tilted?

UtopianGamesUtopianGames Member Posts: 5,692
edited November -1 in Working with GS (Mac)
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.

Comments

  • TumbleSoftTumbleSoft Member Posts: 63
    Hi
    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.
  • ORBZORBZ Member Posts: 1,304
    put this on your ball:

    accelerate: vectorToAngle(device.accelerometerY, device.accelerometerX * -1)
Sign In or Register to comment.