Data structure

Get help using Construct 2

Post » Thu Apr 30, 2015 3:29 am

Hello, everyone.

I am new to array, it seems simple, most to me is being complicated. I already read many topics on filling array, but still can not do.

Thank you.
Last edited by derikvlog on Fri Aug 07, 2015 11:57 am, edited 1 time in total.
B
17
S
1
Posts: 89
Reputation: 1,259

Post » Thu Apr 30, 2015 5:20 am

To save set the array size to (sprite.count, 2, 1) and use a
For each sprite
--- array: set (loopindex, 0) to sprite.x
--- array: set (loopindex,1) to sprite.y

To load use
Array: for each x
--- system:create sprite at (array.at(array.curx, 0), array.at(array.curx, 1))
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Fri May 01, 2015 3:13 am

R0J0hound wrote:To save set the array size to (sprite.count, 2, 1) and use a
For each sprite
--- array: set (loopindex, 0) to sprite.x
--- array: set (loopindex,1) to sprite.y

To load use
Array: for each x
--- system:create sprite at (array.at(array.curx, 0), array.at(array.curx, 1))


@R0J0hound
Thanks
B
17
S
1
Posts: 89
Reputation: 1,259


Return to How do I....?

Who is online

Users browsing this forum: marcoscodas, newt, Ryan Kocourek and 12 guests