So I am making a game right now with bosses. If a certain boss dies i want to spawn a door,but i dont know how to do it.
This is the code where I want to include it:
if (hp <1 ){ getWorld().removeObject(this); }