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

Report as inappropriate.

danpost
danpost presents ...

2012/1/11

MilliSecond Timer

Sample millisecond timer with source code and some comments provided

8543 views / 24 in the last 7 days

3 votes | 0 in the last 7 days

Tags: mouse demo with-source timer danpost

This scenario is a member of: Demos by danpost


open in greenfoot
Your browser is ignoring the <APPLET> tag.
A new version of this scenario was uploaded on Wed Jan 11 08:28:03 UTC 2012 Added comments to source.
A new version of this scenario was uploaded on Thu Apr 05 00:07:24 UTC 2012 Changed elapsed time output to seconds.
A new version of this scenario was uploaded on Thu Apr 05 00:35:05 UTC 2012 Forgot to include source on update.
A new version of this scenario was uploaded on Fri Apr 06 01:07:04 UTC 2012 Simplified code. Adjusted labels.
Did you make the timer with information from the book scenarios? I would like to make a timer for my game aswell, but I am not sure how to make a small 60 second timer. Thanks and great scenario ^^
UpupzealotUpupzealot

2013/4/30

notice that creatImage(long time) method generated a new GreenfootImage everytime, think it may keep gc busy.
A new version of this scenario was uploaded on 2015-06-16 05:26:47 UTC
A new version of this scenario was uploaded on 2020-11-01 20:08:36 UTC

Want to leave a comment? You must first log in.

Who likes this?

TomazVDSN Vellyxenya u15ahernandez