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

2014/10/31

Stop the Time

NiKu NiKu

2014/10/31

#
Hey, i make a new Jump and Run Game (Future Jump and Run) with five Levels. Now i want to stop the time you need for each Level. So when the Player is at the End of the Game he can see how Long he needs for each Level! Can you help me?
NiKu NiKu

2014/10/31

#
Deutsch: Ich habe ein Jump and Run Spiel, mit 5 Leveln programmiert. Jetzt möchte ich für jedes Level einzeln die Zeit stoppen. Um am Ende, wenn man die Level geschafft hat sieht wie lange man für welches Level gebraucht hat! Danke schonmal
danpost danpost

2014/10/31

#
You could use a static array to hold the times for each level. If you have a superclass for you levels between them and the World class, that would be the best place for it. In the constructor of each level, have the negative value of the current time set to its element in the array; and, add the new current time when the level ends,
You need to login to post a reply.