Better Platformer Movement

dmillerdmiller Member Posts: 2
edited March 2016 in Working with GS (Mac)

Hey all,

I'm working on a Platformer (how I've got my rules set up - http://imgur.com/0WO4Md1).

With my current control scheme if you switch quickly between "D" and "A" the player actor will stop moving, instead of moving in the direction of the key press.

Does anyone know if there is a an approach I could take to get a tighter, more responsive control set up?

Any help would be much appreciated.

Thanks!

Comments

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    Try this:

    If A is down AND D is up
    Change velocity X to -150

    Otherwise
    If A is up AND D is down
    Change velocity X to 150

    Otherwise
    Change velocity X to 0

  • dmillerdmiller Member Posts: 2

    @MentalDonkeyGames you are a god walking amongst mere mortals. That worked perfectly. Thank you!

Sign In or Register to comment.