Selecting JSON entries

Get help using Construct 2

Post » Sun Oct 05, 2014 11:42 am

Hello,

In my game I have a JSON with multiple records with ad Key randomly generated.
My basic problem is how i can do to list all the Keys with the ability to select individually and assign a action (view, edit or whatever).

Thanks.
B
6
Posts: 46
Reputation: 342

Post » Sun Oct 05, 2014 4:46 pm

Nothing?
B
6
Posts: 46
Reputation: 342

Post » Fri Oct 10, 2014 8:31 am

Give me a hand on this, please!
B
6
Posts: 46
Reputation: 342

Post » Fri Oct 10, 2014 8:51 am

Load json into array. Use array to list/sort/edit whatever
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Fri Oct 10, 2014 2:21 pm

With array can asign a action for every record?
Is there any practical example?

Thanks so much.
B
6
Posts: 46
Reputation: 342

Post » Fri Oct 10, 2014 2:31 pm

Of the top of my head...
Use functions, and make the param the action... then pass the array data retrieved with action to the function and execute accordingling...
damn that made no sense - lol.

If you know how to retrieve data from array, then Check the tutorial section for callbacks, advanced callbacks.

Function 1 gets the action
and returns the action

Function2 executes the action

You'll have to play around. But functions are just that, a way for you to write your own functions... They are by far the BEST feature in construct2.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Fri Oct 10, 2014 6:19 pm

Sounds really great! Im going to focus on this.
You know any capx ilustrating this?... can be very helpfull for me now.

Thanks a lot :)
B
6
Posts: 46
Reputation: 342


Return to How do I....?

Who is online

Users browsing this forum: ketramtu18, Yahoo [Bot] and 8 guests