VisibilityEnabler2D - Nodes not being destroying after leaving scene in HTML export

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By moisesjbc


I made a crappy game for the Ludum Dare #44 (

Every second, a new “client” is respawned on the left or on the right and it will move to the opposite side. I wanted them to dissapear as soon as they disappear from the screen, so adding a VisibilityEnabler2D to them and connecting the signal “screen_exited” or “viewport_exited” (btw: what is the difference between them ^^U) seemed the way to go.

However, when exporting to HTML, the guys keeps moving out of the game area (*): greedy_atm_bug.png - Google Drive

What am I doing wrong?


(*) Update: the game won’t show the bug anymore cause I added a workaround using Area2D outside of the window for destroying the nodes.