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

2016/3/5

Greenfoot.stop();

Vellyxenya Vellyxenya

2016/3/5

#
Hi, is there a way to prevent the user from stopping the scenario? (I'm making a puzzle with a countdown and the user can cheat if he can stop the game^^) something like : if(Greenfoot.isStopped()) Greenfoot.play(); (for exemple) Any idea?
Super_Hippo Super_Hippo

2016/3/5

#
Put this into your world class:
public void stopped()
{
    Greenfoot.start();
}
Vellyxenya Vellyxenya

2016/3/5

#
Thank you, it works! :) I had tried something like that but I didn't create its own method so maybe that was the problem^^
You need to login to post a reply.