senario is posted on my wall with source code for easy editing and to see what i mean
public class Laser extends Rocket
{
/**
* Act - do whatever the Laser wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
int counter;
public void act()
{
// Add your action code here.
counter++;
// use counter to add a delay
if (counter>=5)
{
//tells the bullet class to wait until counter is equal to 5
setLocation (getX(),getY()-1);
}
else if(this.isAtEdge() )
{
getWorld().removeObject(this);
}
else if (this.isTouching(enemy1.class))
{
getWorld().removeObject(this);
}
}
}