I am trying to program the game to stop automatically when the bird actors hits the penguin actor, but I don't know how to do it. Here is my current code for the bird.
private boolean canHitPengu()
{
Pengu pengu = (Pengu) getOneObjectAtOffset(0, 0, Pengu.class);
if(pengu != null)
{
return true;
}
else {
return false;
}
}
private void hitPengu()
{
if(Hit)
{
return;
}
Pengu pengu = (Pengu) getOneObjectAtOffset(0, 0, Pengu.class);
}

