How do I do save and load object positions from an array

Get help using Construct 2

Post » Thu May 11, 2017 9:30 am

@mostafanastary: I modified the link in my previous post, it is now working.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
311
S
128
G
101
Posts: 7,413
Reputation: 75,222

Post » Fri Oct 20, 2017 4:50 pm

Hi. Thanks for making this thread. Is useful, and the answers are interesting. I'm trying another variation of this.
In my case, i want to make a lot of imagepoints for instances, and i wonder if this is the best option and how to do it.
I want to save and load these coordinates and able to call it with and without leaving the current layout.
How do i do that?
B
9
S
1
Posts: 16
Reputation: 507

Post » Sat Oct 21, 2017 2:58 am

@Avengium, you can do it with 2D array, store [object type, instance ID, pointX, pointY].
Set Global=Yes and you can convert your array to JSON string and save/load with local storage.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
156
Posts: 2,202
Reputation: 82,985

Previous

Return to How do I....?

Who is online

Users browsing this forum: blackhornet, inozz, TheMob000 and 4 guests