How do I generate object when score is 10, 20, 30...

Get help using Construct 2

Post » Sun Nov 16, 2014 1:20 pm

Hello,

I have a small problem. I want to generate an object every time my score is 10, 20, 30 etc.....So when score is a certain number I want to make an action.
Any idea how should I write this in event sheet?

Thanks :)

July
B
5
S
1
Posts: 15
Reputation: 407

Post » Sun Nov 16, 2014 2:50 pm

If it's all multiples of ten, you could check for:
score%10 = 0

if it's arbitrary values, you could add them as keys to a dictionary and check for them with the "has key"-expression, or you use an array and check for "contains value"
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788


Return to How do I....?

Who is online

Users browsing this forum: dop2000, max2612 and 8 guests