Clicky

I am creating a java midlet game. I want to draw a number of sprites one after the other at the same point but I want there to be an interval between the drawing of each sprite. How could I put this interval between the drawing of sprites? Is there a simple way in java to create a timer where I could time the spawning of these sprites?

asked 10/19/2011 04:08

tango2009's gravatar image

tango2009 ♦♦


1 Answers:
You could use Thread.sleep(500) to wait half a second (500 milliseconds) or however long you want it to pause.
link

answered

TommySzalapski's gravatar image

TommySzalapski

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

Asked: 10/19/2011 04:08

Seen: 208 times

Last updated: 11/10/2011 10:06