Removing the "stutter step" effect from keyboard control.

Started by LRH, Fri 13/01/2012 02:06:25

Previous topic - Next topic

LRH

I've noticed with default keyboard controls, the character will keep in place and stutter in their walk cycle animation if the player holds down one of the arrow keys. Is there any way to remove this?

monkey0506

I'm pretty sure the module has a specific mode for holding the key instead of just pressing it. I've never used the module so I'd have to take a look, but is there a reason that wouldn't work for you?

Gilbert

I've just checked the module. Try invoking the following if you haven't done so yet:
Code: ags

KeyboardMovement.SetMode(eKeyboardMovement_Pressing);


(If it's in "tapping mode" instead you just tap an arrow once to make the character start moving, and tap it once again to make him stop moving. So, if you keep an arrow pressed under this mode the player's state will just alter between start walking and stopping, making him stutter.)

SMF spam blocked by CleanTalk