YoYo_GetTilt
#1
Posted 13 March 2012 - 04:31 PM
#2
Posted 13 March 2012 - 04:50 PM
What is it meant to return? How do you implement this into a game? Can you detect how far the device has been tilted?
So would:
if YoYo_GetTiltY()=1 vspeed=+=0.1work?
Or is it:
if YoYo_GetTiltY()=45 vspeed=+=0.1where it measures by the degree of tilt of the device?
Edited by Cakefish, 13 March 2012 - 04:51 PM.
#3
Posted 13 March 2012 - 04:52 PM
#4
Posted 15 March 2012 - 12:21 AM
#5
Posted 15 March 2012 - 12:31 AM
This means use > or < rather than = something.
Try "if YoYo_GetTiltX() > 0.5" or "if YoYo_GetTiltX() < -0.5"
If nothing is working, try putting "draw_text(0,0,YoYo_GetTiltX());" in a draw event to make sure there isn't a glitch in GMS or your ipod is broken.
Edited by name, 15 March 2012 - 12:36 AM.
#6
Posted 15 March 2012 - 12:36 AM
Oh... Ive tried what you suggested with drawing the value. My ipod might be broken as it returns nothing... But other apps that use the accelerometer work...
Edited by howabout, 15 March 2012 - 12:37 AM.
#7
Posted 15 March 2012 - 12:41 AM
Oh. Does this mean that ios doesnt return anything?
Oh... Ive tried what you suggested with drawing the value. My ipod might be broken as it returns nothing... But other apps that use the accelerometer work...
If that's the case, it might be a problem with GMS.
Let's hope someone from YoYo sees this.
...or is there a bugtracker site for GMS yet? If so, you could submit it there.
#8
Posted 15 March 2012 - 01:00 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











