I want an actor to move between the X's 250 and 500 and it doesn't work.
import greenfoot.*;
public class Goomba_1 extends Goomba
{
public void act()
{
if(getX()==250)
{
move(4);
}
if(getX()==500)
{
move(-4);
}
}
}

