How to use VisibilityEnabler2D?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Alex\doc
:warning: Old Version Published before Godot 3 was released.

I’m trying to figure out how to use the VisibilityEnabler2D node but I’m unsuccesfull:
this is my setup

editor setup

It looks like the setup in Enemy from the 2d platformer demo but when I see if it is actually working, it looks like it’s not:


The same breakpoint against the Enemy in platformer2d demo instead is looking good:

platformer watch

Am I missing something?

:bust_in_silhouette: Reply From: Noeun Kim

Check this tutorial on the node!
VisibilityNotifier / VisibilityNotifier2D ► Nodes in Godot Engine [5:59]

It Demonstrating how you can use the VisibilityNotifier2D (which works the same way as VisibilityNotifier for 3D)

The VisibilityEnabler will disable RigidBody and AnimationPlayer nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler itself."

Note this is a very old question and refers to an older version of Godot. Make sure to check the date of questions you’re answering.

kidscancode | 2018-12-05 02:53