How do I compare 3 text Instances

Get help using Construct 2

Post » Sat Mar 01, 2014 1:34 am

Hello, I have 3 Text Instances of and object numbered 0,1,2 and they produce the numbers between 0 and 4 , on a button click,
Can you show me how I can check / compare the 3 Instances on each tick to see if they are all =

thanks.
B
13
S
4
Posts: 60
Reputation: 1,001

Post » Sat Mar 01, 2014 1:41 am

@Kniggles, in a single event, I would put two conditions. First, compare the first Text instance to the second one, then compare one of those to the third Text instance.
B
20
S
4
G
1
Posts: 185
Reputation: 2,563

Post » Sat Mar 01, 2014 1:59 am

Thanks danialgoodwin that`s how I am trying to work round it, am a bit lost on how to call the first two instances to compare
B
13
S
4
Posts: 60
Reputation: 1,001

Post » Mon Mar 03, 2014 8:49 pm

@Kniggles, the main way I would use to compare text is to use the "Compare text" event that is available in the Text object.

Though, you could also use the System."Compare two values" event for the text. But, I recommend the first way instead.
B
20
S
4
G
1
Posts: 185
Reputation: 2,563


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], Lancifer, nahima and 11 guests