Collide and Accelerometer
In my current game, I am using a "Change Attribute" behavior to control the accelerometer. It goes like this:
change attribute self. Position.X to self.Position.X +((min(.5,max(-.5,( game.Accelerometer.X + game.calibrate ))))*10)
And then I have a simple collide attribute (bounce when colliding with actor of type pipe)
However, when you drop the character, and tilt it into the side of the pipe, it will not accelerate down. It just stops. I have tried using gravity, accelerate, move, change velocity, and other ways to get the character to drop when you touch the screen, however no matter what, if you tilt it into the pipe it will stop going down.
Does anyone know how to fix this?
Thanks,
Henry Abrams
change attribute self. Position.X to self.Position.X +((min(.5,max(-.5,( game.Accelerometer.X + game.calibrate ))))*10)
And then I have a simple collide attribute (bounce when colliding with actor of type pipe)
However, when you drop the character, and tilt it into the side of the pipe, it will not accelerate down. It just stops. I have tried using gravity, accelerate, move, change velocity, and other ways to get the character to drop when you touch the screen, however no matter what, if you tilt it into the pipe it will stop going down.
Does anyone know how to fix this?
Thanks,
Henry Abrams
Comments
cheers