I'm making a little game like bloons where the bloons follow a path so i need to move a component around but slowly along between two points i can make it move but not slowly is there a way to make it do so?
Printable View
I'm making a little game like bloons where the bloons follow a path so i need to move a component around but slowly along between two points i can make it move but not slowly is there a way to make it do so?
Read the API documentation of one of the available Timer classes. They call a Runnable or TimerTask or whatever on regular intervals. Your TimerTask (or whatever) should update the position of a bloon and repaint() the component that is supposed to draw the bloon.
kind regards,
Jos
ps. bloon? I only know of a buh-loon ...
Its a kids game. I figured id make a simpler version or make a game similar just to improve my knowledge in java. Its actually Bloons Tower Defense we always call it bloons in my school.