How do I use alpha and beta properly

Get help using Construct 2

Post » Sat Apr 26, 2014 3:00 pm

I got this to work a bit but it just goes in one direction.
I want the "Commander" to respond to all tilts.

What am i doing wrong below?

sdaf.gif
You do not have the required permissions to view the files attached to this post.
B
8
S
1
Posts: 62
Reputation: 660

Post » Thu May 01, 2014 2:51 am

Compare orientation (manual: Touch)
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.



meaning you need Beta for moving in Y axis and Gamma for moving in the X axis.
B
43
S
12
G
6
Posts: 446
Reputation: 6,807


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 22 guests