How do I choose the higher of 2 variables?

Get help using Construct 2

Post » Sat Apr 12, 2014 10:09 pm

I've got 3 global variables. VariableA & VariableB are both numbers that change according to different conditions.

When an object is created, I want to set VariableC to whichever is the highest of variables A & B. Is there an expression for this?

Sprite|On created|System|Set VariableC to _____(fill in the blank)_____
thanks in advance
Phase 1: Collect Underpants.
Phase 2: ????
Phase 3: Profit!
B
16
S
5
G
4
Posts: 106
Reputation: 2,450

Post » Sat Apr 12, 2014 11:00 pm

ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Sun Apr 13, 2014 12:07 am

thanks, that's what I needed
Phase 1: Collect Underpants.
Phase 2: ????
Phase 3: Profit!
B
16
S
5
G
4
Posts: 106
Reputation: 2,450


Return to How do I....?

Who is online

Users browsing this forum: dop2000, namaewayukidesu, Xh3maa and 10 guests