A way to tell which direction the device is tilted

A feature I’d like to see in Hopscotch is:

A way to determine which way the device is being tilted, not just how much.

I’d use it for this type of project:

I am currently making a project which uses the tilt % variables to control it, but am limited by not being able to tell the direction that the device is being tilted.
If you tilt the device towards right side up from being tilted all the way to the left, the code cannot tell that apart from you tilting it the opposite way from the same position.


Wait then what is this:


Those are great and very useful, but there are two possibilities for every value. Play around with them: if you rotate your device 90° clockwise, the tilt up % variable will be 100. No matter which way you tilt your device, that variable will go down. The project can’t tell if you are tilting it clockwise or counterclockwise.


Huh. I guess i just neverr play around with them

1 Like