How do I access the new Dictionary/Array editors?

Post » Fri May 19, 2017 7:06 pm

Hi,
How do I access the Dictionary/Array editors presented here:
https://www.scirra.com/blog/192/new-edi ... onstruct-3


Edit:

I can now see that there actually new json files. How can I put the values from the editor into array/dictionary ,using ajax request. Is there an example?
Thanks
[size=200]1. Best Construct 2 course :HERE.10$!

2. 155 games source codes for sale on scrira store 12,86$each. PM me if interested to speed up the uploading process.
[/size
B
32
S
8
G
4
Posts: 148
Reputation: 3,713

Post » Mon May 22, 2017 1:49 pm

1. Right click on your the "Files" folder of your project
2. Select "New" - "Array"
3. Fill in your data and close the array editor
4. Go to your layout and add the Array object and AJAX object
5. Add an "System - on start of layout" event and give add the action "AJAX - Request project file" to it , selecting your "New Array.json" the tag "array"
6. Add an "AJAX - on completed" event with the "array" tag and add the action "Array - load" to it, giving the expression "AJAX.LastData"

That should do the job! At the moment there's a bug with the data editor / text editor where they don't sync with the project unless you save the project or close the data editor / text editor which might cause you some confusion.
Scirra Employee
B
5
S
2
Posts: 124
Reputation: 871

Post » Mon May 22, 2017 2:11 pm

New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests