Help!! Putting a sprite on a path?
I'm looking for a similar program to this, except it needs to be a circle which gets bigger as it goes 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.
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( ));
}
}
This progam makes circles bigger.
import animax.*;
class circles
{
public static void main(String[] args)
{
int x = 350, y = 350;
int r = 50;
int dr = 10;
GrafixDrawingFrame f = newGrafixDrawingFrame(700,650);
f.drawOval(x - r, y-r, 2*r, 2*r); r = r + dr;
f.drawOval(x - r, y-r, 2*r, 2*r); r = r + dr;
f.drawOval(x - r, y-r, 2*r, 2*r); r = r + dr;
}
}

