Creating Circles Along a Path
I'm looking for a similar program to this, except I need it to be a circle which repeats along a Sprite Path and forms a pattern. The path will start at the top left and finish at the bottom right with circles being created as the Sprite moves along the path.
This code could be completly wrong though. Any helpw would be appreciated.
import animax.*;
import java.awt.Rectangle;
class MovingCircle
{
public static void main(String[ ] args)
{
Stage stage = (new AnimationFrame(500, 300, 120)).getStage();
Rectangle rect = new Rectangle(0, 0, 100, 50);
stage.add(new SpritePath(100, 150, 450, 50, sprite));
stage.add(new SpritePathDisplay( ));
}
}
Message was edited by:
helloworld2007

