MikaR03 wrote...
How do you mean i dont see where the crash method is called from what do i have to do whit that method. I just called it "crash" or cant i do that?crash();
crash();
import greenfoot.*;
/**
* Write a description of class Tegenliggers here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Tegenliggers extends Actor
{
/**
* Act - do whatever the Tegenliggers wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void checkRand()
{
{
if (getY()<-10)
{
getWorld().removeObject(this);
}
}
}
}