I'm using "Phathifinding" to make NPCs move, and using "PIN only position" to track them.
But when NPC moves due to Phathifinding, the health bar is in a wrong angle position.
Use hierarchy instead of Pin.
Develop games in your browser. Powerful, performant & highly capable.
I'm using contruct 2, I forgot to comment on that, but thanks anyway for the answer!
That health bar is more suited for objects that will not change their angle. This is because the bar is not pinned exactly in the XY of the object so it will mess up the bar.
Here is a health bar that will work with rotated objects in C2:
https://www.dropbox.com/scl/fi/845uqm6zery8nkxl7awov/2-Health-Bar-That-Works-with-Family.capx?rlkey=k80bblsn2xjeyybkoym9rxxuc&dl=0
You need to mention this in every of your posts! C2 and C3 are too different now.
On every tick set healthbar position to something like (NPC.x, NPC.BBoxTop-10)
Now I understand! Thank you very much for your help again dear!