Accelerometer Bug
LBG
Member Posts: 277
Hi,
I have an actor that moves left and right according to the accelerometer. If I use gravity in my scene everything is fine. If I remove gravity and use accelerate down as my gravity (which I would like to do as I don't want everything to have gravity) then moving to the right works but the actor will not move to the left.
Thanks
LBG
I have an actor that moves left and right according to the accelerometer. If I use gravity in my scene everything is fine. If I remove gravity and use accelerate down as my gravity (which I would like to do as I don't want everything to have gravity) then moving to the right works but the actor will not move to the left.
Thanks
LBG
Comments
when game.accelerometerX > 0.01
accelerate direction 0 speed 100
when game.accelerometerX < 0.01
accelerate direction 180 speed 100
This works fine with gravity on (Y600) but when I remove gravity and add.....
Accelerate direction 275 speed 600
.......It will not move to the left
The actor is colliding with an object called floor that is not moving or rotating.
Thanks
This works fine with gravity on (Y600) but when I remove gravity and add.....
Accelerate direction 270 speed 600
.......It will not move to the left
________________________________
【ツ】iPhone Icon Pack (compatible with DBA Icon Creator) 【ツ】 - 【ツ】Graphic Pack【ツ】
Free GS demos: High score simple and advanced; Game Center; App Rating System; Custom Font Score and Countdown; Advanced Snap to Grid
Yeah sorry. Typo. I am using <-0.01
Thanks
Edit - I have no idea what that bit after what I just wrote means. I can't get rid of it and if I type it it doesn't appear in the post.....
I hope that helps