Bug with pause and iPad accelerometer ???

galbangalban Member Posts: 62
edited November -1 in Working with GS (Mac)
Hello

(Sorry for my English, but I'm french ...)

I developed a game that uses the accelerometer gamesalad of IPAD. I created a pause button and a start button. When the player clic on the pause button, I change the gamepause = true and I'll destroy the pause button and I display start continues.
I create rules "PAUSE" that encapsulates player move.

if gamepause = False Then
if attribute game.accelerometer.x> 0.05 Then
Accelerate Acceleration towards 90 200
end

... Same for the other three directions ...

Otherwise
move: 0 Speed: 0
end

When I test my games on my IPAD, it works. But if touch very quickly on the pause button and the Start button: A bug occurs, the accelerometer is not working properly and the player continues to move toward one direction.

Do you have a solution? Is this a bug gamesalad? because if I test on my Mac with arrows, the bug does not occur.
Sign In or Register to comment.