How do I add a HitBox

Godot 4.4

So I’ve been following a Dev-Worm Tutorial but the one where he adds the hitbox really messed with me because no matter how much i add stuff it does not work. Thanks

1 Like

Can you share more? What do you expect to happen versus what really happens? Do you get any errors?

1 Like

Uhh so when the players collision shape enters the slimes area it’s supposed to print you getting attacked but it doesn’t do anything :cry:

Ok what does your code look like? Can you share a screenshot of your scene tree?

1 Like

Yep gimme some time

Do you want a screenshot of both

Pasting code is preferred, a screenshot of the scene tree would show if any signals are connected from nodes

Make sure to paste between three ticks like so:

```gd
func this_is_my_function() -> void:
    print("Hello")
```

is formatted like so:

func this_is_my_function() -> void:
    print("Hello")
1 Like

Thanks