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

2014/6/15

Pause Game after button click?

Mint_Greenie Mint_Greenie

2014/6/15

#
Hello, On my latest game in Greenfoot, 'Infinity' there is an actor called 'PlayButton' and two worlds, one being 'world' where the user can draw a picture so they can play the game, and the second being 'Sky' to get from 'world' to 'Sky' the user has to click on an actor called PlayButton which will pass the image the user drew from the 'world' class to the 'Sky' class. The question I have is that if it is possible to pause the 'Sky' class when the user hits 'PlayButton?' since the game presents the game over sign so fast the user doesn't have a chance of playing this game. Is there any way of fixing this problem? Any help would be much appreciated! Thanks, Mint_Green
Mint_Greenie Mint_Greenie

2014/6/15

#
If anybody wants to know how I fixed this... All I did is add a line of code which is 'Greenfoot.stop' at the end!
You need to login to post a reply.