Skip to content

Attaching healthbar to enemies. #4564

Answered by laundmo
AndrewCS149 asked this question in Q&A
Discussion options

You must be logged in to vote

I would use a child entity for this, you can see how they can be added here: https://github.com/bevyengine/bevy/blob/main/examples/ecs/hierarchy.rs

child entites inherit their transform from the parent, which would make them follow along.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AndrewCS149
Comment options

Answer selected by AndrewCS149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants