Storing X and Y position in a sequence as a .txt file.

Discussion and feedback on Construct 2

Post » Sat Dec 19, 2015 2:01 am

I'm trying to make a tool for storing the position of mouse-clicks in a linear sequence, and then store it in a .txt file so I can load them in at a later point with AJAX.

Example:
1280, 720
182, 920
124, 2902
2390, 2392
etc. etc...

I can't find a good way to do this though? The closest thing I can think of is using LocalStorage, but I can't find the save data anywhere on my computer.

Anyone have any suggestions on how to do this?

Thanks
B
33
S
10
Posts: 376
Reputation: 3,193

Post » Sat Dec 19, 2015 1:31 pm

You can use an array and write the file via asJSON and the NWjs object.

Otherwise the local storage files are in \appdata\local\yourgame\localstorage, iirc.
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770


Return to Construct 2 General

Who is online

Users browsing this forum: WealthyKing and 7 guests