Make doodle jump movement smooth?

JamieOneilJamieOneil Member Posts: 877
edited January 2012 in Working with GS (Mac)
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?

Comments

  • JamieOneilJamieOneil Member Posts: 877
    Hello, anybody out there? :)
  • SparkyidrSparkyidr Member Posts: 2,033
    edited January 2012
    Hi there.
    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
  • JamieOneilJamieOneil Member Posts: 877
    Thank you!
    I just had to change it to *800.
    But it works great! just what im looking for:)
    Thank you very much!
  • JamieOneilJamieOneil Member Posts: 877
    Yeah, im working from that, but cause it does not have tilt build in, when you put it on, it was very jerky.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Here's what I use in "Jump 'N Slash"
    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
Sign In or Register to comment.