cant fall off platform. HELP :):)

Blitz3D Forums/Blitz3D Beginners Area/cant fall off platform. HELP :):)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

One thing you should look at is not to use the Keyhit command for exiting the program. You can only use the keyhit command once inside a loop. Use keydown.



This is not true. It's perfectly OK to use Keyhit() but just remember that you can only call the function once per keypress. If you need to check more than once the condition of whether or not a key was pressed then use a variable to retain the value of Keyhit() until the end of your loop (i.e. escapekeypressed = Keyhit(1)). And don't forget to reset the variable to false at the end of the loop.