I tried to implement a system where the player can unlock different regions by opening doors with collected crystals.
One of the things I am trying to achieve is to have enemy spawners only to be created within unlocked regions. I am currently establishing which region is which using tilemaps.
The problem I am currently facing is that when moving the player to a different region when there are no enemies spawned, the newly spawned enemies will just stay still unless the player is in the same region as the enemies.
The desired outcome is to have the enemies follow the player all around.
C3 File:
drive.google.com/file/d/1eStuFx0aUV7-FmRi13C38NuQwS6oual2/view