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

2021/3/13

Timer and scoreboard

AnJoMorto AnJoMorto

2021/3/13

#
I'm trying to make a game where you have to be the quickest completing some tasks. Now that all the rest is done I just need to add a time display that will stop when the player completes the last task and make a scoreboard with the name (5 letters max that the player would introduce after his run) and time of the top 10 best players. I'm a little lost how to achieve it, so can anyone send me, if you know, some demos or tutorials that could help me do it?
danpost danpost

2021/3/13

#
Start with the timer. My Value Display Tutorial scenario should help are far as displaying the elapsed time. For now, as far as the scoreboard, just create an Actor subclass for it. You can work on it once the timer is working. In general, you can have the following set-up: (a) if task complete, show scoreboard; and (b) if no scoreboard in world, run timer; The two together, done individually, should do nicely to control the flow.
AnJoMorto AnJoMorto

2021/3/14

#
Thank you danpost, your Value Display Tutorial is awesome. Timer's working perfectly!
You need to login to post a reply.