Floating Display Damage

0 favourites
  • 4 posts
From the Asset Store
This sound pack features 117 game sounds : Axe,Punch Swing & Hit & Damage. This is a perfect collection for your game.
  • 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!

  • 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.

    <img src="http://dl.dropbox.com/u/5773521/Fading_Damage.jpg" border="0">

    Good Luck

  • shadowedsol try to rotate blue sprite witm 8 mov behavior and click, text are rotated too

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hey Kataryna

    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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)