Hi Ryan, Yes, that's the basic idea. You might have a walk flag and when an up or down arrow is pressed it triggers the walk flag, and your main loop simply acts upon the walk flag if the flag is true and ignores it if it is false.
On 7/30/13, Ryan Strunk <[email protected]> wrote: > Hi Cara, > I haven't pondered this. Are you saying, for example, that you could give > the player a forward velocity of 0.1, and as long as walking is true, > update > that every time through the game loop? Then if the velocity is 0, he just > wouldn't move? > Fascinating concept. I wouldn't mind some clarification. > All the best, > Ryan > --- Gamers mailing list __ [email protected] If you want to leave the list, send E-mail to [email protected]. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/[email protected]. If you have any questions or concerns regarding the management of the list, please send E-mail to [email protected].
