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

Get help using Construct 2

Post » Mon Sep 26, 2016 5:40 pm

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
Posts: 6
Reputation: 162

Post » Mon Sep 26, 2016 6:05 pm

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
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
Posts: 644
Reputation: 10,068

Post » Mon Sep 26, 2016 6:42 pm

Thankyou very much for that, your a star!
You have made my day. :)
Posts: 6
Reputation: 162

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests