0 votes

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 "screenexited" or "viewportexited" (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 (*): https://drive.google.com/file/d/1NttXduQIejFifN2Mkkc-U2rkYWd5IrGP/view

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.

in Engine by (12 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.