0
Answered

How to make a damage UI to show the damage?

mo D 2 months ago in Stats updated by Marti (Lead Developer) 1 month ago 2

How to make an UI to show damage when being hit?

I'm trying to use the instantiate game object action, but how can I store the damage in the spawned text ui?

Unity version:
2019.4.5f1
Game Creator version:
latest
GOOD, I'M SATISFIED
Satisfaction mark by mo D 1 month ago

Do you mean like the borderlands games, where the damage taken appears over the enemy as a number?

How do you work out your damage? There should be a way to store this to a variable which you can get the value from when it instantiates/toggles active on hit. Depends how you do it I guess. 

Answered

Yup, in that case, I would store the damage output in a variable, so you can query it when dealing damage onto a character and displaying a damage value on screen