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

2019/12/3

Is there a way to press a button and have the program quit completely?

TylerBlair TylerBlair

2019/12/3

#
I am doing a game over screen for my game and was wondering if there was a way that a user can press a key and then have the program quit. I know how the keypress works but I am just looking for what would come after that.
danpost danpost

2019/12/3

#
TylerBlair wrote...
I was wondering if there was a way that a user can press a key and then have the program quit. I know how the keypress works but I am just looking for what would come after that.
I think you want:
Greenfoot.stop();
You need to login to post a reply.