im trying to make the hitboxes for combat in my platformer work but ive hit a road block I was using the on area entered and is only monitoring while the attack animation was playing but I realised when it starts monitoring its not like it enters it was always there so the npc would have to walk into it while im swining so im not sure what to do now I have no ideas can anyone help
First, since you want to create an area and then check what’s inside, and not just when something enters and exits, try using get_overlapping_bodies() to get an array of bodies.
Second, be aware that normally you create / set things in the physics world, let it advance a frame, and then you have your results. Not normally an issue but you sometimes need to do something specific to have “instant” results, like forcing a shapecast to update and collide. Or just spawn damaging shapes 1 frame early.