how dont lost sprite image after F5 in browser and load game

Get help using Construct 2

Post » Sat Nov 26, 2016 9:24 pm

Hello,

Please take a look into attached project.

You can load any images into canvas. Then you press 'S' to save. Then you can drag image. Then press 'L'. Image will be loaded at position that it was after you press 'S'.

Hit F5 button. Browser will refresh. Hit the 'L'. In Debug mode sprite loaded but image was lost.

How dont to lost a picture?

https://www.dropbox.com/s/nqbmhlr7qblxaz7/FilleChooserAndSave.capx?dl=0
B
4
Posts: 5
Reputation: 214

Post » Fri Dec 02, 2016 9:56 pm

up
B
4
Posts: 5
Reputation: 214

Post » Sun Dec 11, 2016 8:44 pm

up
B
4
Posts: 5
Reputation: 214

Post » Mon Jan 09, 2017 4:41 pm

up
B
4
Posts: 5
Reputation: 214

Post » Mon Jan 09, 2017 8:41 pm

I haven't looked at your capx but images aren't saved. You can however keep the image URL in a variable and then load that URL every time you load.
B
94
S
33
G
113
Posts: 5,354
Reputation: 73,269

Post » Thu Jan 19, 2017 8:47 am

Hello,

Could you please elaborate on "images aren't saved" ? I can load them by pressing "L". but after browser refresh they are gone(.
"keep the image URL" it could be solution, however I need to write some server side code to handle this case. I am loading image from my hard drive and would like to store it in browser for first time.

anyway thank you for your reaction on post:)
B
4
Posts: 5
Reputation: 214


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests