Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LRH on Fri 13/01/2012 02:06:25

Title: Removing the "stutter step" effect from keyboard control.
Post by: LRH on Fri 13/01/2012 02:06:25
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?
Title: Re: Removing the "stutter step" effect from keyboard control.
Post by: monkey0506 on Fri 13/01/2012 02:46:47
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?
Title: Re: Removing the "stutter step" effect from keyboard control.
Post by: Gilbert on Fri 13/01/2012 02:55:33
I've just checked the module. Try invoking the following if you haven't done so yet:

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.)