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
18
S
1
Posts: 89
Reputation: 1,284

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
94
S
33
G
118
Posts: 5,395
Reputation: 75,851

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
18
S
1
Posts: 89
Reputation: 1,284


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests