Page 1 of 1

NPC desactivation/despawn algorithms (offscreen) Problems [Fixed Patch 10]

Posted: 14 Jul 2019, 0:56
by Lx Xzit
There is a problem with the current NPC desactivation algorithm. Some NPCs won't appear again:

Spoiler
Image

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

This is the whole image of the level:
Spoiler
Image

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
Image




I found another problem and it's not related with what I said above.

The game isn't respawning offscreen NPCs correctly:
Spoiler
Image
Image

But In SMBX 1.3 it works fine:
Spoiler
Image
Image

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):