so long as the arrow is removing itself at the end instead of resetting, you only need the direction and and a life time for the arrow. You can use MTK's code for the direction, and then add to the constructor
public Arrow(double angle, int life){
this.life = life;
this.angle = angle;
}
Then in the act method, have a timer variable increment each act and when it is the same as life, then remove the arrow.
You need a lifetime if you want the arrow to stop eventually! Otherwise you can just wait until it hits the edge of the world and remove it then. If there is no time at which it is removed, then you wind up with too many arrows :P
2009/11/21
2009/11/21
2009/11/21
2009/11/22
2009/11/23
2011/9/26