NPC desactivation/despawn algorithms (offscreen) Problems [Fixed Patch 10]
Posted: 14 Jul 2019, 0:56
There is a problem with the current NPC desactivation algorithm. Some NPCs won't appear again:
However in SMBX 1.3 the exact same setup works fine:
This is the whole image of the level:
To fix this, SMBX 1.4 should implement SMBX 1.3's NPC desactivation algorithm: the NPC will be desactivated after being 4 seconds offscreen:
I found another problem and it's not related with what I said above.
The game isn't respawning offscreen NPCs correctly:
But In SMBX 1.3 it works fine:
My guess is that the game does not recognize accurately when a NPC is offscreen (probably because of an error with the coordinates?) and that's causing this goomba not being able to spawn.
Here is the link of the shown level (if needed):
- Spoiler

However in SMBX 1.3 the exact same setup works fine:
- Spoiler

This is the whole image of the level:
- Spoiler

To fix this, SMBX 1.4 should implement SMBX 1.3's NPC desactivation algorithm: the NPC will be desactivated after being 4 seconds offscreen:
- Spoiler

I found another problem and it's not related with what I said above.
The game isn't respawning offscreen NPCs correctly:
- Spoiler


But In SMBX 1.3 it works fine:
- Spoiler


My guess is that the game does not recognize accurately when a NPC is offscreen (probably because of an error with the coordinates?) and that's causing this goomba not being able to spawn.
Here is the link of the shown level (if needed):