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!
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.
<img src="http://dl.dropbox.com/u/5773521/Fading_Damage.jpg" border="0">
shadowedsol try to rotate blue sprite witm 8 mov behavior and click, text are rotated too
Develop games in your browser. Powerful, performant & highly capable.
Add 8 directional movement with text box angle set to layer angle 90 degrees. File link has been updated.
<img src="http://dl.dropbox.com/u/5773521/Fading_Damage2.jpg" border="0" />
Hope that helps.