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: 338
Reputation: 7,424

Post » Tue Apr 23, 2013 1:37 pm

You need to use webstorage, it could store snapshot URI.
B
104
S
29
G
22
Posts: 3,066
Reputation: 24,273

Post » Tue Apr 23, 2013 1:56 pm

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

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
104
S
29
G
22
Posts: 3,066
Reputation: 24,273


Return to How do I....?

Who is online

Users browsing this forum: ChesVCF, jeffige, Pulstar and 7 guests