How do I make a score counter?

0 favourites
  • 2 posts
From the Asset Store
Make a displayed number gradually increase or decrease, making an impression of a real-time counting.
  • I'm new and i don't know how to make a score counter (ex. if the bullet hit the enemy you receive 10 points).

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    A quick an easy way to create what you're after would be to create a global event named Score, or whatever you wanted.

    Then you will need to update the variable every time you score, so bullet > on collision with (sprite name) - (System) add 10 to "Score".

    We will also need a text sprite to show our points. We can then use the event (System) Every Tick > text sprite - Set text to "Score".

    This means every time your bullet hits an enemy, 10 points will be awarded and the points will update on the text sprite. Don't forget as this is a global event you will need to pop another event in to clear the current score i.e (System) On start of layout > (System) Set Value "0"

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