This site requires JavaScript, please enable it in your browser!
Greenfoot back
Omniscience
Omniscience wrote ...

2012/3/30

Quick query...

Omniscience Omniscience

2012/3/30

#
If I pause the execution of the world, will Greenfoot.getKey() still record the last key that was pressed, even when the world is paused? If not, how could I achieve the execution of the world to be paused whilst still running the getKey() method?
danpost danpost

2012/3/30

#
No. That is not possible. Although, you could create a public method that will except a keystroke and store it for future use, if that is what you want. Why would you want to 'pause' the execution of the scenario and still allow keystrokes to be directed to it? Maybe(?) you did not explain what you wanted clearly enough and there IS(?) a way to do what you want.
You need to login to post a reply.