Why does the game get stuck and give me an error?
The alien shoots thunder at the spaceship.
When ever the alien shoots the thunder and the thunder reaches the bottom of the world edge, it stops the game and gives me an error. WHY??
Here is my code:
Public void act()
{
bleh();
kalb();
}
public void bleh()
{
setLocation(getX(), getY() +7)
if( atWorldEdge() )
{
getWorld().removeObject(this);
}
}
public void kalb()
{
if (canSee(Spaceship.class) )
{
eat(Spaceship.class);
}
}

