can someone please send me the simple code- where when the balloon hits the point I want it to explode.
public void explode()
{
if(getX()==aimX && getY()==aimY)
getWorld().removeObject(this);
}public void explode()
{
if(getX()==aimX && getY()==aimY)
{
getWorld().addObject(new Explosion(), getX(), getY());
getWorld().removeObject(this);
}
}