–1 vote

Hello
i have a game with a home
i've put a area2D in the home to detect if the character is in the home
if he was in the home we can show what is inside the home
else,if we aren't in the how then we can watch what outside the home

but that doesn't work
how can i fix this ?

code (body of the character):
extends RigidBody2D

export var wall : NodePath

func onArea2Dareaexited(area):
get_node(wall).visible = true

func onArea2Dareaentered(area):
get_node(wall).visible = false

some images and videos to understand what i whant to do :

https://we.tl/t-8zCOsutUcp

Godot version 3.3.2

Godot version 3.3.2
in Engine by (25 points)
retagged by

1 Answer

0 votes

you need to connect the signals

by (52 points)

all the signal are connected

are you here ? awser me

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 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 webmaster@godotengine.org with your username.