Is there a way to add objects to an array?

Get help using Construct 2

Post » Fri Sep 13, 2013 3:30 am

Is this possible?
B
5
Posts: 13
Reputation: 676

Post » Fri Sep 13, 2013 3:41 am

Kind of, you can add an object's UID into an array and later on pick that object by UID.
B
8
S
2
Posts: 18
Reputation: 611

Post » Fri Sep 13, 2013 3:47 am

That should be sufficient enough for my needs :D Thanks!
B
5
Posts: 13
Reputation: 676

Post » Fri Sep 13, 2013 4:18 am

You may want to take a look at Rex's InstGroup plugin. It allows you to do many of the typical array functions (sort, push, pop) with objects: http://www.scirra.com/forum/plugin-instance-group_topic49662_page1.html

It is only 1D though.

Hm, wonder if you can make an InstGroup of InstGroups...
B
10
S
4
G
1
Posts: 58
Reputation: 1,420


Return to How do I....?

Who is online

Users browsing this forum: JDebstup and 11 guests