How do I Compare

Get help using Construct 2

Post » Sat Mar 01, 2014 12:39 pm

I am trying to compare 3 variables of 3 instances of the same object,
I know that it will need to go , compare A with B and if they are = then compare B with C and if there are = then action()

The bit I am stuck on is how to fill in the box to call the 2nd variable.
any help gratefully appreciated,
Thanks,

The Text box object is called winnum and the instance variable is known as playthis and the UIDs are 23, 24 ,25
You do not have the required permissions to view the files attached to this post.
B
13
S
4
Posts: 60
Reputation: 1,001

Post » Sat Mar 01, 2014 3:42 pm

If you only have three Textboxes in total, you can actually address each directly. If there are more, you need to pick each, store the value to compare, and then test the three values. Here a sample using the text itself.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Sat Mar 01, 2014 4:49 pm

blackhornet wrote:If you only have three Textboxes in total, you can actually address each directly. If there are more, you need to pick each, store the value to compare, and then test the three values. Here a sample using the text itself.


Thanks blackhornet, have it working in my project , think it should be quite easy to scale up as well,
Thanks Again :)
B
13
S
4
Posts: 60
Reputation: 1,001


Return to How do I....?

Who is online

Users browsing this forum: el3um4s, Ryan Kocourek, TylerJS, Yahoo [Bot] and 14 guests