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

2016/4/25

Time Counter

Babyhoof Babyhoof

2016/4/25

#
I am trying to make an edited version of asteroids that instead counts the time you have been alive. Is there any way to do this?
danpost danpost

2016/4/25

#
Babyhoof wrote...
I am trying to make an edited version of asteroids that instead counts the time you have been alive. Is there any way to do this?
Yes. You can have two counter fields -- one to track the act cycles and one to track "seconds" (or groups of act cycles -- usually around 55 per second). So every time the act counter reaches 55 add one to the timer and reset the act counter back to zero. You can use a simple actor object to display the time elapsed. This is discussed in my Value Display Tutorial scenario.
You need to login to post a reply.