Mail Archives: djgpp/1998/09/15/13:36:55
> Hi!
>
> I've decided that i want to try writing a game Allegro. It's going to be a
> vertical scrolling shoot em up (pretty original hey? *cough*).
> Anyways, im
> having trouble getting the keyboard to control the ship good..
>
> Whenever I hold a key down, my ship will move a bit, then stop, then move
> again. I'm pretty sure it has something to do with the keyboard
> delay before
> repeating, How can i get around this?
>
Odds on you're using readkey(). Don't. Use something like:
if(key[KEY_LEFT])
move_left();
etc. Read the key[] part of the manual.
James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819
- Raw text -