How do I get elements of an array by other element ?

Get help using Construct 2

Post » Thu Sep 22, 2016 11:54 am

Look at this array (column1 Players, column2 teams and column3 level)

Alex Red 10
Bob Blue 8
Tom Blue 5
Leo Red 6
Jill Green 9


...so i create this array and , text box and add a button too.
Problem---> I want when Click on the button then the text box will show the team blue members Bob and Tom.
How to do it?
B
17
S
5
Posts: 45
Reputation: 1,240

Post » Thu Sep 22, 2016 12:23 pm

B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Thu Sep 22, 2016 12:56 pm

checking thanks ! :) @korbaach
B
17
S
5
Posts: 45
Reputation: 1,240

Post » Thu Sep 22, 2016 1:01 pm

r227 here :|
B
17
S
5
Posts: 45
Reputation: 1,240

Post » Thu Sep 22, 2016 1:46 pm

B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Thu Sep 22, 2016 1:54 pm

thanks a lot @korbaach i opened it wow its working! :) what is the relation of button.text with getting those teams..I thought I have learn these arrays :) if there is any simple way to do it please tell me otherwise this is very good for me ..thank-you you did it! have a good day!
B
17
S
5
Posts: 45
Reputation: 1,240

Post » Thu Sep 22, 2016 1:58 pm

and why you used ajax ?
B
17
S
5
Posts: 45
Reputation: 1,240


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests