Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Accelerometer — Gideros Forum

Accelerometer

misterhupmisterhup Member
edited March 2016 in General questions
Hi guys! I am working on a project and I can't figure out a thing. I have a variable and I want to store in it a number depending on the phone's rotation. If the player tilts the phone to left, that number should decrement slowly til it hits a minimum. If the player tilts the phone to the right, the number should increment til it hits a maximum. Something like a spirit level but it doesn't need to be accurate at all since I am using it for a game. Help? :|

Comments

  • piepie Member
    edited March 2016
    @misterhup have you seen the accelerometer example?
    Look in the "hardware section" of the gideros examples on program startup menu or in
    gideros/Examples/Hardware/Accelerometer/Accelerometer.gproj

    Likes: antix

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.