I am doing a project in programming where we need the actors that we control to have three lives, and we can't figure out how to make them respawn. Help??
lives--; //or however the field is called if (lives < 1) getWorld().removeObject(this); else setLocation(100, 100); //the respawn position