Floating Display Damage

Get help using Construct 2

Post » Thu Mar 08, 2012 4:34 am

I searched the Construct 2 forums but nothing shows up on the best and optimal way of displaying floating damage numbers. Anyone know any links or tutorials? Thanks!
B
6
Posts: 14
Reputation: 478

Post » Sat Mar 24, 2012 8:13 pm

Hey Yumarod3
Basically you need 4 things.
One Damage variable
Two enemy sprite
Three text object/plugin
Four Keyboard/mouse plugin

Set the damage to whatever you want. Create a enemy with an instance variable for its health. Then set keyboard/mouse to subtract damage from the enemy's health. While spawning a text object with whatever coordinates you want (next to/on top of) for your sprite. Then setup the movement for the text object with every __ seconds moving the text object up -Y. Add a fade behavior to the text object. And your done.

Here is the example I put together to test. Floating Damage

Not 100% sure this is the best way, but it will get you started.

Here is a screen shot in case you can't open.

Good Luckshadowedsol2012-03-24 20:54:13
B
9
S
1
G
3
Posts: 19
Reputation: 1,628

Post » Sun Mar 25, 2012 1:14 pm

@shadowedsol try to rotate blue sprite witm 8 mov behavior and click, text are rotated too
B
170
S
3
G
2
Posts: 65
Reputation: 6,057

Post » Mon Mar 26, 2012 3:52 am

Hey Kataryna
Add 8 directional movement with text box angle set to layer angle 90 degrees. File link has been updated.

Hope that helps.shadowedsol2012-03-26 03:54:58
B
9
S
1
G
3
Posts: 19
Reputation: 1,628


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Braus, Kagubro, Mirlas, zeneizel and 23 guests