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

2018/5/10

How to add a countdown timer and record the results

allsterrrr allsterrrr

2018/5/10

#
I wanted to add a visible timer in a game for about 20 seconds so that the player would know how much time they had to complete something and also have the game end as soon as time ran out. But along with that, I wanted to have an option where the player could press the space bar and record the time they finished in I then wanted to keep those times recorded so that the player could view them when they finish the game. I'm still fairly new and so I barely know anything about this program
danpost danpost

2018/5/10

#
For the displaying of the timer, you can refer to my Value Display Tutorial scenario. It should not be too difficult to have the world run the timer and check for the space bar. You may want to use an array or list to retain the times to display at the end. The tutorial can help with the displaying then as well.
allsterrrr allsterrrr

2018/5/10

#
Ok, thank you so much!
You need to login to post a reply.