Hi, I can't find any solutions to my question. I'm writing a 2d game, and I'm trying to get my character to have his speed increase every time a key is pressed (like the Joust in the atari game, if you'll remember). I'm not just talking about if leftkey() = 1 then dec playerX
It would be like... if leftkey() = waspressed then dec playerX
and the player would keep moving left even after the key was unpressed. However, if the key was pressed again, his speed would increase (or decrease

) another 1.
I own a copy of darkBasic pro game programming second edition for a class I'm taking, and I don't see a built in keypressed function anywhere.
I keep trying to build the code in my head, but I can't seem to figure out the logic for this one. :/
Any help is greatly appreciated.
Thanks for reading,
~Aaron
Str8^