Hey, im new in Greenfoot and i need help.
How to make an actor constantly moving to another location, and then stop here.
(Actor coordinates are 600 and 600 and i want it to constantly moving to 600 400)
is that possible?
public void act()
{
if (getY() > 400) setLocation(getX(), getY()-1);
}