[Solved] HDI stop this infinite madness with global numbers?

Get help using Construct 2

Post » Sat May 30, 2015 1:58 am

I've got list gender selection in my game. And I wonder, how can I add +2 STR to default 10 STR if player selected >male< gender? (attributes are global numbers)
I really tried and made only unstoppable +2 STR to basic 10 STR every tick.

Here's a picture of what I have:Well, I hope that my question is clear.

Update: No, I'm not doing it every tick. :?
Last edited by k0fe on Sat May 30, 2015 7:33 pm, edited 2 times in total.
B
6
Posts: 4
Reputation: 260

Post » Sat May 30, 2015 3:42 am

Why are you doing it every tick?

If the conditions are met simply add 2 to STR global... once.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
65
S
17
G
8
Posts: 635
Reputation: 9,331

Post » Sat May 30, 2015 4:00 am

This is what I do:
Image
B
6
Posts: 4
Reputation: 260

Post » Sat May 30, 2015 12:11 pm

Having a hard time following you, as in what is going wrong and how this is not running every tick. Need more detail.

Nonetheless, if you want to cap the strength, you could add another condition (right click, add another condition) that p_str be less than or equal to 12 (whatever) before adding some value to the variable, among other solutions.
B
13
S
5
G
4
Posts: 139
Reputation: 2,586

Post » Sat May 30, 2015 2:06 pm

Would adding a system trigger once condition to that event help?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat May 30, 2015 7:22 pm

LittleStain wrote:Would adding a system trigger once condition to that event help?

Yes! Now it's works just fine! Much thanks!
Thanks everyone!
B
6
Posts: 4
Reputation: 260


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Yahoo [Bot] and 4 guests