I've done hitbox and hurtbox ok many times, but I've never done a node in a node that has both the hitbox, the hurtbox, and the collision of the Node. As in the attached picture, if I remove the hitbox node, I will use Node Infestor itself as the hitbox = OK.But if I do not use Node Infestor as a Hitbox, but I use a Hitbox is Area2D then it will not work ,although I have marked the exact collision Mark and Layer.
And in the script I also correctly connect is Enter_Area2D .But it doesn't still work. WHY???? Anybody HELP me?Thank you so much everybody !
Hitbox and Hurtbox
Have you tried hooking up the relevant signals in the "Node" tab, next to the "Inspector"? (I assume by Infestor, you mean Inspector - ESL is no problem). The other question I'd ask is what you are trying to accomplish, do you intend for your character's hitbox to hit their own hurtbox? Or are there enemy hitboxes and hurtboxes you wish to interface with them?
Thank you for your replying ! I mean " When I do Hitbox by Kinematic2D and Hurtbox by Area2D are OK. But when I add 1 Hitbox by Area2D as in Image, that Hitbox doesn't work." I guess " 1: it doesn't have script, 2: it doesn't connect signal". So, how to add many hitboxes and hurtboxes in a node? Please help ! Sorry for my bad English !
If you need a general refresher on signals, the Getting Started Tutorial of the documentation is a good place to start: https://docs.godotengine.org/en/stable/getting_started/step_by_step/signals.html
For hitboxes and hurtboxes, I learned about these from a HeartBeast's tutorial series on Youtube. The link to the specific video is as follows: https://youtube.com/watch?v=vDbEfmPcv-Q&list=PL9FzW-m48fn2SlrW0KoLT4n5egNdX-W9a&index=11
The entire series is good though, so if you're interested, it starts here: https://youtube.com/watch?v=mAbG8Oi-SvQ&list=PL9FzW-m48fn2SlrW0KoLT4n5egNdX-W9a&index=1
Thank you so much, my Bro !
No problem--but I'm not a bro. Dames making games, we are a thing :)