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

2020/10/13

Question about pause

DatHeroAndy DatHeroAndy

2020/10/13

#
Is it possible to disable the pause function of a scenario?
RcCookie RcCookie

2020/10/21

#
Theoretically not, however, in the world class there is a blank method stopped(). Just override it and call Greenfoot.start() . That should Sontheimern job.
RcCookie RcCookie

2020/10/21

#
Although it’s gonna be quite hard to stop that thing once it’s running. Try using the debugger in that case.
danpost danpost

2020/10/21

#
RcCookie wrote...
Although it’s gonna be quite hard to stop that thing once it’s running. Try using the debugger in that case.
One way to still be able to stop it is to have another world that the user can always get to so they can pause it from there..
RcCookie RcCookie

2020/10/21

#
Or also only execute Greenfoot.start() if some key is not pressed down. If it is it will not turn back on
You need to login to post a reply.