Need help with accelerometer

BeanstineBeanstine Member Posts: 101
edited November -1 in Working with GS (Mac)
I'm making a game similar to froggy jump and i was setting up the accelerometer and i couldn't get the actor to move as smoothly as it does on froggy jump. i made rules like this:
>.1 then accelerate 180 at 250
>.09 accelerate 180 at 225
and so on to 0. and it wasn't as smooth as i was looking for. could anyone take a look at froggy jump and make a video or tell me how to make the actor moving that smooth??

Comments

  • BeanstineBeanstine Member Posts: 101
    just moving this up...
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    Haven't seen froggy jump -- but you might not want to use accelerate. Perhaps linear velocity.y would work.

    Also, smoother movement can be obtained with proportional control. Perhaps something like:
    >.5 then change attribute velocity.Y to 250*game.Accelerometer.Y

    Hope this helps spark an idea.
Sign In or Register to comment.