Despawning and Respawning Glitch
TODO: write something here. :clapping: and get a better title
Vanished state
Objects in a vanished state will be intangible and invisible to the level until they attempt to move. They will also persist across all level changes and resets while vanished.
Vanishing objects
Via spring mining a turtle
Note that dying and vanishing are different. If the entity that ends up on water does not have flippers, they will simply die rather than vanish.
Via failed vanishes
If you do something that should cause a vanish but the vanish is interrupted by a level change or reset, any entity that was on the tile where the vanish took place will be vanished on level load.
(Note again that entities will un-vanish as soon as they attempt to move, which is why the glider in the above gif had to be enclosed in toggle doors in order for the vanishing not to be immediately undone.)
Via swapping with a vanished object
If a vanished object generates on a tile that already has an object on it, the vanished object "swaps places" with the present object, causing it to vanish.
Generating objects
Vanished objects will generate in the same spot they were before once the next level begins. They will only become tangible and visible once they attempt to move.
Objects can generate on top of other objects. Suppose you were to reset an additional time after the glider-in-toggle-doors test:
Sometimes, upon a level change, vanished player entities will be unable to move and thus unable to generate. Level resets seem to work fine.
key word SOMETIMES. i cant tell why that happens when it happens and why it doesn't happen when it doesn't happen
Because multiple vanished entities can have the same position, the above process can be repeated many times to spawn many players:
However, if there is not already more than one player to start with, the extra player will be unusable since player switching is not enabled in levels with only one player. (Also note that character switching is disabled once only one player needs to exit.)