Noah2610 / deathfloor

Work-in-progress Mega Man inspired game.
MIT License
2 stars 0 forks source link

OnSpawn event is never triggered if entity loads unloaded (off screen) #77

Open Noah2610 opened 4 years ago

Noah2610 commented 4 years ago

An entity is only in the Spawn lifecycle state in the very first frame after its creation. So if it is unloaded (off screen) after creation, it will still be in its Spawn lifecycle state while unloaded and no OnSpawn events can trigger, because events only trigger for loaded entities.