I am making a game in the style of older Zelda games, like Link's Awakening. I want to have the enemies by inactive when the player is in a different room, and to be reset to default status when they leave and reenter.
I know to use an Area2D to trigger the pause and reset, but I don't know how to code this in.
Or should I just make spawner nodes that spawns the enemies in when the play enters and removes them when they leave?