79713191

Date: 2025-07-24 10:44:48
Score: 1.5
Natty:
Report link

I want to clarify something. So basically, what you want is, when your Monster spotted the player, you want the monster to chase the player?

My suggestion is to use signals and groups.

func ready():
connect("body_entered", chase) #the syntax may differ depends on the godot version

func chase(body):
if body.is_in_group("players"):
player_path = body.get_path()

If you have any more questions please ask. I just started leaning godot last year so there is a chance that i get things wrong but this is what I learned and it works for me.
I just wanted to connect to people.

Reasons:
  • Whitelisted phrase (-1): works for me
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Swecle