How do I create achievement for Autorunner?

Just started using Construct 2? Post your questions here

Post » Thu May 08, 2014 2:09 pm

I want to add a type of achievements to my autorunner game but can't get it to work. Basically i want an image/sprite to appear when the user goes past certain scores. I'm using the Autorunner template for my game and what i've tried doing is create an event like this -

Condition - System -> Compare Variable (TotalDistance) = 1000
Action - System -> Create Object

This hasnt worked for me as nothing happens when it hits 1000.

Could someone help me out with this, i'm using the Autorunner Template as a basis for my game.
B
4
S
2
Posts: 111
Reputation: 830

Post » Thu May 08, 2014 2:48 pm

Put both the conditions and use it this way

System -> Compare Variable (TotalDistance) >= 1000
System -> Compare Variable (TotalDistance) < 1001
Every Game is a Good Game it's just few people like and few does not! Keep coding people some day you will be a "NOTCH".
B
21
S
6
G
3
Posts: 85
Reputation: 4,607

Post » Thu May 08, 2014 3:07 pm

Thank you so much for that, it works. I've changed it slightly where i just set the initial visibility to invisible and when it hits a certain number is becomes visible rather than creating an object.

Do you know how to make it appear for just a second and then disappear again? Also it is possible to add a blinking effect to it?
B
4
S
2
Posts: 111
Reputation: 830

Post » Thu May 08, 2014 3:19 pm

you can use "flash" behavior for that! or else you have to do it manualy using wait function!
Every Game is a Good Game it's just few people like and few does not! Keep coding people some day you will be a "NOTCH".
B
21
S
6
G
3
Posts: 85
Reputation: 4,607

Post » Thu May 08, 2014 3:30 pm

Great, thank you again!
B
4
S
2
Posts: 111
Reputation: 830


Return to Beginner's Questions

Who is online

Users browsing this forum: didjridoo and 1 guest