pause key function
Posted: Thu Apr 05, 2012 11:59 am
Hi,
I have an issue with the keypressed function and would like to understand how exactly it works.
My problem is simple:
As the program takes a few milliseconds to calculate changes in the level, my player keeps on progressing as I hold a key down - which is an issue since I need to track his motion.
How can I pause or interrupt keyboard reading while updating the level?
I've used no coroutines or such in my prog, so that can't be it...
Thanks for your help,
jimflim
I have an issue with the keypressed function and would like to understand how exactly it works.
My problem is simple:
As the program takes a few milliseconds to calculate changes in the level, my player keeps on progressing as I hold a key down - which is an issue since I need to track his motion.
How can I pause or interrupt keyboard reading while updating the level?
I've used no coroutines or such in my prog, so that can't be it...
Thanks for your help,
jimflim