What to do with input during movement?

Posted by user1895420 on Game Development See other posts from Game Development or by user1895420
Published on 2014-08-21T19:58:43Z Indexed on 2014/08/21 22:28 UTC
Read the original article Hit count: 425

Filed under:

In a concept I'm working on, the player can move from one position in a grid to the next. Once movement starts it can't be changed and takes a predetermined amount of time to finish (about a quarter of a second).

Even though their movement can't be altered, the player can still press keys (perhaps in anticipation of their next move). What do I do with this input?

Possibilities i've thought of:

  • Ignore all input during movement.
  • Log all input and loop through them one by one once movement finishes.
  • Log the first or last input and move when possible.

I'm not really sure which is the most appropriate or most natural. Hence my question:

What do I do with player-input during movement?

© Game Development or respective owner

Related posts about input