Make doodle jump movement smooth?
So, im working on the Vanesaa Riddle App..
One of the minigames in putting in is a 'Doodle Jump' type game.
But the thing is..all the doodle jump on GS seem to not be smooth, i put in a tilt for a few of them, but there all the same, because when you keep the ipod still, it stops, so its very 'jerky'
any thoughts on how to make it smoother?
One of the minigames in putting in is a 'Doodle Jump' type game.
But the thing is..all the doodle jump on GS seem to not be smooth, i put in a tilt for a few of them, but there all the same, because when you keep the ipod still, it stops, so its very 'jerky'
any thoughts on how to make it smoother?
Comments
You will need to do something like this :
Depending on your orientation you will have to play around with which direction you need the minus sign, and which you dont.
but..
For moving left -
When attribute : game.acellerometer.X < -0.01
constrain attribute : self.motion.linear.X to game.acellerometer.X * 400
For moving right -
When attribute : game.acellerometer.X > 0.01
constrain attribute : self.motion.linear.X to game.acellerometer.X * 400
You can tweak the 0.01's to affect how sensetive it is the larger the number, the larger your "dead zone" for movement.
Also, tweak the *400's...the higher the muber the fater you will move.
In the example above the dead zone is from -0.01 to +0.01 really small, so you would get that "stopping" motion that you described in your original post.
This replicates the doodle jump tilt motion pretty well (imo)
Sparky
I just had to change it to *800.
But it works great! just what im looking for:)
Thank you very much!
constrain self.position.X to self.Position.X +( game.Accelerometer.X *15)
Change the 15 to a higher number to make it more sensitive and a lower number to make it less sensitive.
Works smooth as butta