How do I add an object if global number is > than 10

0 favourites
  • 3 posts
From the Asset Store
Creepy Sprite Font suitable font for your Dark/Horror/Halloween games.
  • Hello all, im just trying to work this out if anyone can help.

    I have a Global Number called Score which is at 0

    Global Number Score = 0

    What I want is if the Global Number Score is greater than ten how could I add an object when player dies?

    Basically its a medal system.

    A man is running and jumps obsticles. Every obsticle he jumps a point is rewarded. If the player was to die and they have 10 points or more a bronze medal is rewarded on screen. If the player gets greater than 20 then a silver medal is rewarded, and greater than 30 then a gold is rewarded.

    I bet it is really simple, but I just cannot seem to work it out?

    Please help

    Thanks in advance

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For global you would use System object: Compare value event.

    When you choose the compare value event you will be asked for the required comparator.

    Then you can action out your event based actions... spawn sprite at x,y or whatever

  • Thankyou very much for that, your a star!

    You have made my day.

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