# How do I use the tilt control

Get help using Construct 2

### » Mon Apr 07, 2014 10:49 am

Hey guys & girls ,

How can I use the alpha, beta, gamma features?
I don't understand how to tell the system to move into the direction the device is tilted, but as in a 8-way direction.

Regards,

Andrei
B
8
S
1
Posts: 20
Reputation: 567

### » Mon Apr 07, 2014 1:34 pm

I haven't tried this out yet, but I came across this old blog post here: http://ericterpstra.com/2012/11/construct-2-html5-mobile-game-turkey-trot-of-doom/

On that page, the author has a link for CAPX with accelerometer controls. You could look at that for ideas. Again, I'm not sure if that code is out-dated.
B
33
S
7
G
8
Posts: 312
Reputation: 8,530

### » Mon Apr 07, 2014 2:24 pm

Touch conditions

Compare acceleration
Compare the current device's motion as its acceleration on each axis in m/s^2 (meters per second per second). The effect of gravity can be included or excluded, but note that some devices only support accelerometer values including the effect of gravity and will always return 0 for acceleration excluding gravity.

Compare orientation
Compare the device's current orientation, if the device has a supported inclinometer. Alpha is the compass direction in degrees. Beta is the device front-to-back tilt in degrees (i.e. tilting forwards away from you if holding in front of you). A positive value indicates front tilt and a negative value indicates back tilt. Gamma is the device left-to-right tilt in degrees (i.e. twisting if holding in front of you). A positive value indicates right tilt and a negative value indicates left tilt.
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

### » Mon Apr 07, 2014 8:14 pm

Thanks... granpa I know how to read. The problem is that I don't really understand how to set it up...
B
8
S
1
Posts: 20
Reputation: 567

### » Fri Apr 11, 2014 6:50 am

I also encounter this problem too! When i tilt my smartphone, the Player doesn't move to the left and right smoothly, it seems like you tap ur left key twice, not as smooth as Doodle Jump or Mega Jump controls. Anyone pls teach us what to put in the Event
B
5
S
1
Posts: 35
Reputation: 481

### » Fri Apr 18, 2014 3:32 pm

hello?
great support, super friendly forums... can you help?
B
8
S
1
Posts: 20
Reputation: 567