Respnsive Accelerometer
kalamantina
Member Posts: 9
Hi everyone,
I am trying to work with the accelerometer, to make an actor move left and right based on the tilt in the phone. I have the rules on the actor as follows :
Move right:
When game.Accelerometer.X < 0.15 : accelerate direction 0
Move left:
When game.accelerometer.x > -0.15 : accelerate direction 180
The problem is that when deploying on my phone through GS viewer, its a bit slow to respond to changes in the X axis changes. I am hoping to make it kinda like the doodlejump game, where a slight tilt just moves the actor in another direction.
I am trying to work with the accelerometer, to make an actor move left and right based on the tilt in the phone. I have the rules on the actor as follows :
Move right:
When game.Accelerometer.X < 0.15 : accelerate direction 0
Move left:
When game.accelerometer.x > -0.15 : accelerate direction 180
The problem is that when deploying on my phone through GS viewer, its a bit slow to respond to changes in the X axis changes. I am hoping to make it kinda like the doodlejump game, where a slight tilt just moves the actor in another direction.
Comments