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

2013/5/17

how to pause my timer

MBX5 MBX5

2013/5/17

#
im have a few problems with this to be honest. i got 3 classes under the world class and i want my timer (one of the classes) to pause when one of my objects 'eats' the player class. is there any way to link my class to the timer so when its gone the timer pauses
danpost danpost

2013/5/17

#
If you already have a timer object that works, then just enclose all the code within its act method inside an 'if' statement using 'getWorld().getObjects(Player.class).isEmpty()'.
You need to login to post a reply.