How to make "damage" or "heal" numbers fly off players/mobs?

Get help using Construct 2

Post » Sun Mar 09, 2014 5:30 am

When I hit a character or mob, I want to have the damage fly off their sprite so the player can see easier how much damage they are doing. I'm preparing to get rid of the text area at the screen's bottom so I can finish my menu's and need to have a method of displaying at least the damage being dealt. This "numbers flying off" the damaged sprite is my preferred style for this game, but I do not know where to start. Any help?
B
27
S
7
G
6
Posts: 268
Reputation: 3,852

Post » Sun Mar 09, 2014 6:38 am

Hi roracle,

I got this effect in one of my games. Look here: https://burpsgames.com/html5-games/how-much-i-love. If you touch the heart a white number appears and fades/flys off.

I do this with a sprite font with two behaviors (sine and fade). I spawn the font and activate that it is flying up with vertical sine behavior and at the same time I start the fading. The fading also destroys the object when finished. You just need to adjust the times so the fade finishes before the sine behavior woud let move it down again.

Cheers,
Marco
B
34
S
9
G
4
Posts: 206
Reputation: 8,351

Post » Sun Mar 09, 2014 7:06 am

B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Sun Mar 09, 2014 9:18 am

Thank you very much for great example.
B
11
S
3
Posts: 37
Reputation: 999

Post » Mon Mar 10, 2014 11:15 am

Thanks for the replies fella's. I haven't implemented it yet, but it seems to work how I expected it to by the examples.
B
27
S
7
G
6
Posts: 268
Reputation: 3,852


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests