How do I save positions to an Array.

Get help using Construct 2

Post » Fri May 29, 2015 11:41 am

I have some objects scattered around the map. I want to save these positions to an array, so that it can be read later.
I want to save the positions and the angles of several objects as they spawn to an array and load them on a function call.
I also need to be able to delete entries from the Array, as these objects can be picked up, and should no longer be present in the array.

* I was thinking to use. On created. then Array>Push to add the objects in the list. (something like that)
* As an object is picked up (Destroyed) i want to delete a whole row of X.
* As a function is called. I want to spawn (Create) objects according to the array in the correct positions.

I don't need to save them as they are created. Another solution would also be to Save all the positions on a function call, which ever is better.

My array would look something like this.
Image

Would this work?
Follow my progress on Twitter
or in this thread Archer Devlog
B
42
S
18
G
19
Posts: 1,058
Reputation: 14,050

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests