I am trying to make my dagger move to the world border, stop for one second, and then return back to the actor. However, the dagger moves way too quick and I can't even see it moving. Also I haven't been able to find a way to make the dagger just stay there without pausing everything else. Please help!!!
Here is my code (the boolean is for something else):
public void shoot()
{
if (Greenfoot.mouseClicked(null))
{
b=false;
while (getX()<1066 && getY()<800 && getY()>0 && getX()>0)
{
moveDelay();
}
Greenfoot.delay(1);
b = true;
}
}
