0 votes

i have the hitbox of my player have a signal body_entered so he can take dmg and also receive dmg BUT i needed to make a portal for my levels so i followed a quick tutorial that needs the hitbox of the player to have on hitbox area area entered so i did it but the old signal disappeared so i thought it might be bc i added a new signal any help on that?

Godot version 3.4.4
in Engine by (19 points)

1 Answer

0 votes

You have tried to connect the same signal to the same script where already was function? You shuld just write the portal holder in that function in if statement. Something like this:

if body.name == "Portal":
     # Here what you want to do in that case
by (654 points)
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.