How do I Preserve Arrays Across Layouts?

Get help using Construct 2

Post » Fri May 30, 2014 12:44 am

First I need an array to store all the properties of spells so it needs to be permanent and present throughout all layouts. Array is like an object type not a variable so how do I preserve that data between layouts?
Also, the array is getting very long so how could I just preset the values of the array instead of putting it in one by one in the actions?
B
5
S
1
Posts: 31
Reputation: 439

Post » Fri May 30, 2014 1:16 am

The Array is global by default, so the data persists across Layouts. You can make a JSON object and load it, but it's not pretty. You can look at the CSV plugin also.
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,847

Post » Fri May 30, 2014 1:22 am

Thanks. Is there any way to convert from an excel file?
B
5
S
1
Posts: 31
Reputation: 439

Post » Fri May 30, 2014 1:49 am

That's what the CSV plugin does: viewtopic.php?t=64326&start=0
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,847


Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey, David181, luckyrawatlucky and 2 guests