How do I Add Tilt Controls?

0 favourites
  • 3 posts
From the Asset Store
Kids Game
$49 USD
New Sounds Added Update: 115 new sound effects added for no additional cost!
  • How do I Add Tilt Controls? So what I mean is how to I tilt the device and get the character to move in the direction tilted? Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Try using the "Touch" object and checking Alpha,Beta and Gamma values to capture device orientation, then, simply translate this into commands to move your character...

    EG, if Touch.AccelerationXwithG > 3 THEN move player forward (with G takes into consideration gravity)

  • [quote:3lsn29tn]Try using the "Touch" object and checking Alpha,Beta and Gamma values to capture device orientation, then, simply translate this into commands to move your character...

    EG, if Touch.AccelerationXwithG > 3 THEN move player forward (with G takes into consideration gravity)

    Could you elaborate a bit please? For example, if I am at portrait mode and I tilt the device left/right to move 10pixels at the appropriate direction, how would this be?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)