Animated Text/Score Board

0 favourites
  • 7 posts
From the Asset Store
Create the right kind of drama with Film Scoring Tools sound library!
  • Hey everyone!

    I am trying to make an animated counter. One you would normally see at the end of a video game. I started with this code in the shot below but going up by one is far to slow. If I go up by ten or a hundred I lose the full effect of the numbers flashing. Can anyone help or seen this done? Thanks!

    <img src="http://img132.imageshack.us/img132/9652/support009.png" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Why don't you try Every X seconds (X could be 0.2 for exemple)

  • Since you're displaying text every tick, try using dt instead of a solid number.

    You'll probably want 2 variables: Score and Score_Display. Then when Score is greater than Score_Display, have it add 100*dt to Score_Display.

    This way, the text shows the Score_Display variable every tick, and every tick it constantly adds to the variable until the score is the same.

  • Since you're displaying text every tick, try using dt instead of a solid number.

    You'll probably want 2 variables: Score and Score_Display. Then when Score is greater than Score_Display, have it add 100*dt to Score_Display.

    This way, the text shows the Score_Display variable every tick, and every tick it constantly adds to the variable until the score is the same.

    So far this is what I have come up with. But its not giving the desired effect. Is this what you mean?

    <img src="http://img163.imageshack.us/img163/3192/support010.png" border="0" />

  • Here's an example of displaying the score over a fixed amount of time. It doesn't matter if the score is 100 or 10000000 it will be count up from 0 to score over 2 seconds (or whatever value you set).

    fixedTimeScoreDisplay.capx

  • Hmm, complicated math there but I love it! Thank you so much.

  • Hi, I was play around with your capx , but i can't come up with it.

    I added on keyboard pressed add 50 do score

    but when i press again the counter restart from zero wich is the timer value

    I tried to put timer value = score but doesent work

    can you take a look?

    thanks

    dropbox.com/s/om42fyeltk2p4 ... .capx?dl=0

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