How do I get the Overall Condition? (Solved)

Get help using Construct 2

Post » Fri Nov 20, 2015 10:23 pm

I have an object_1 with instance variables. Each instance variable is set to 100 for 100%

so 10 variables at 100%, over time these will decrease randomly, how do I get the overall condition of all 10 variables?

I want an output of this object_1 overall condition is 98%.

EDIT: Got it,

make a instance variable called overall, and set every tic to set the overall to variable1 + variable2 + variable3

then you can display it with a set text to round(overall*0.1)&"%"
Last edited by mordiaky on Fri Nov 20, 2015 10:34 pm, edited 1 time in total.
B
8
S
1
Posts: 74
Reputation: 725

Post » Fri Nov 20, 2015 10:33 pm

(object_1.var1 + object_1.var2 + ... + object_1.var10) / 10
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Fri Nov 20, 2015 10:35 pm

ramones wrote:(object_1.var1 + object_1.var2 + ... + object_1.var10) / 10



didn't even think of doing it that way, I solved it with what I did above.
B
8
S
1
Posts: 74
Reputation: 725


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests