public void seeEchidna()
{
if (getOneIntersectingObject(Echidna.class) != null)
{
timer.mark();
Greenfoot.playSound ("Here You Are.mp3");
World GameWorld = getWorld();
GameWorld.removeObject(getOneIntersectingObject(Echidna.class));
if (timer.millisElapsed() == 1000)
{
/Greenfoot.setWorld(new YouLose());
timer.mark();
}
}
}
I am just trying to make it so the World changes when the timer hits 1000 milliseconds. I have put:
private SimpleTimer timer = new SimpleTimer();
before my constructors, etc. Am I putting this line in the wrong place or what? Any help would be appreciated. Thanks!

