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
40
S
17
G
17
Posts: 991
Reputation: 12,654

Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 38 guests