How do I make a .txt, that contain all the data of a map

Get help using Construct 2

Post » Sun Mar 19, 2017 9:06 pm

Hello!!! I want to make pressing a button open a text box, then put the name of the map, then press a button and the map will be saved in .txt, somewhere in the internal memory, please help I am beginner
(Sorry for my English)
B
6
S
1
Posts: 9
Reputation: 368

Post » Mon Mar 20, 2017 12:22 am

Is it 100% necessary to store it as a *.txt file? Will the user need / want to have access to this file? If not, try using Local Storage to store the string that you would have stored in the *.txt.

Otherwise, you'll have to rely on NWJS (so desktop-only, there probably won't be a mobile solution for this). It can read and write text files effectively.
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 242
Reputation: 2,306

Post » Mon Mar 20, 2017 1:19 am

Well it does not have to be .txt, as long as I save a file with the map, no matter the extension
B
6
S
1
Posts: 9
Reputation: 368

Post » Mon Mar 20, 2017 4:26 pm

If it's a file, and it's only containing the map, I'd recommend the JSON format, as it's more usable by C2. That said, you can just use NWJs with your *.txt
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 242
Reputation: 2,306

Post » Mon Mar 20, 2017 4:45 pm

thank you very much!!!
B
6
S
1
Posts: 9
Reputation: 368


Return to How do I....?

Who is online

Users browsing this forum: Armench, Jackriduk, kiki4construct and 26 guests