Im making a game where I want a hawk to be removed when it hits the Y axis.
Can anyone help me out? Here's the code I'm looking at.
public void act()
{
setLocation(getX() - 1, getY());
}
public void move() {
if (getY() <= 0) {
getWorld().removeObject(this);
}
