Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | moisesjbc |
Hi!
I made a crappy game for the Ludum Dare #44 (https://ldjam.com/events/ludum-dare/44/the-greedy-atm).
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?
Thanks!
(*) Update: the game won’t show the bug anymore cause I added a workaround using Area2D outside of the window for destroying the nodes.