- Home /
Display Hit Text On Collition
Hi, I am trying to display an amount of damage dealt using text. I am working a on 2D game and when the player hits an enemy for (let's say) 2 Hp, I want to have a small red number 2 to pop up above the enemy's head and fade away. I feel like a particle system could handle this beautifully, if only you could change the particle sprite via script. If anyone knows how this could be done in c#, I would be very grateful!
Answer by Purplepigfarm · Aug 21, 2017 at 04:17 PM
Well I have found this video (https://www.youtube.com/watch?v=bFLtH05SO4M) and it shows what I am trying to do. However, it doesn't explain much as to what they are doing and why. It would be awesome if someone could elaborate on it.
Your answer
Follow this Question
Related Questions
Is it possible to give a color to int variables? 1 Answer
How to change width and color of a 2d sprite within script 1 Answer
Urgent help for Unity Game with deadline tomorrow 0 Answers
Long string for dialog text 1 Answer
One Unity instance writes to a text file, while the other reads the text file 1 Answer