C
C#2w ago
WindyOMG

Health

Hello, does anyone know how i can link health between 2 sprites? like if 1 takes damage the other sprite also takes damage and lowers the health by 1.
2 Replies
TheRanger
TheRanger2w ago
what did you do so far?
Arjix
Arjix2w ago
sprites? are those sprites representing the same entity? did you intend to post this in the unity discord or smth? if the sprites represent the same entity, I wouldn't save health info in the sprite itself, but I would link the sprites to the entity in some way, maybe a HashMap<EntityId, Sprites>

Did you find this page helpful?