Savegame Screenshots?

Get help using Construct 2

Post » Tue Apr 23, 2013 1:30 pm

I was trying to make a screenshot for a savegame, however it seems that the sprite state is not saved in the gamestate. :(

What i tried is:

1. on save -> take snapshot of canvas
2. on snapshot complete -> set Slot1Image to Canvassnapshot (works)
3. save game (works)


When i load the game, the Slot1Image is blank :(
B
33
S
6
G
7
Posts: 339
Reputation: 7,426

Post » Tue Apr 23, 2013 1:37 pm

You need to use webstorage, it could store snapshot URI.
B
111
S
30
G
28
Posts: 3,106
Reputation: 27,643

Post » Tue Apr 23, 2013 1:56 pm

@Joannesalfa thanks, webstorage works fine! :D
B
33
S
6
G
7
Posts: 339
Reputation: 7,426

Post » Tue Apr 23, 2013 11:47 pm

@Ize use jpeg with low quality it comes very low kb size, webstorage is limited to 5 mb.
B
111
S
30
G
28
Posts: 3,106
Reputation: 27,643


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests