How do I set building array + save into file

Get help using Construct 2

Post » Tue Apr 11, 2017 7:38 pm

Hello guys.

I'm working some time on a project and right now I get stuck. We figured out how to set building array bassed on sprite background (squares 10pX10p)and how to create simple object with the "core" square and another squares around.

Here's my question - How to "save" this "builded module" into the array or into other thing as sprite etc.

1st Phase is create the spaceship design. Than Save
2nd Phase is put allowed modules onto the design
3rd phase - save the setted spaceship into the "game" and let the game manipulate with it (In battle system, navigation - there is transition between layouts)

This is not moveable sprite. Who want's to discuss something about it, feel free to write me.

Cheers,
Rob
SoftWork Group Ltd

Co-founders:
Robert Matik (UK Division)
Lukas Zyrek (CZ Division)

07399443703 (UK Division)

International(at)softworkgroup.wtf - for basic questions and information
Office(at)softworkgroup.wtf - email for questions about team and proposals
B
16
S
5
G
1
Posts: 49
Reputation: 1,656

Post » Tue Apr 11, 2017 8:42 pm

Any Array can be represented as a single string with the Array.AsJSON expression. You can save this string however you want - into a variable, dictionary, localstorage, another array, ect. You can then load it again with the Array Load action.
Mistakes were made.
B
52
S
26
G
111
Posts: 1,628
Reputation: 62,677

Post » Tue Apr 11, 2017 8:51 pm

I will try do my best. In few days I will post my work. Now I have some major problem with layer visibility. :/
SoftWork Group Ltd

Co-founders:
Robert Matik (UK Division)
Lukas Zyrek (CZ Division)

07399443703 (UK Division)

International(at)softworkgroup.wtf - for basic questions and information
Office(at)softworkgroup.wtf - email for questions about team and proposals
B
16
S
5
G
1
Posts: 49
Reputation: 1,656


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo and 18 guests