save game ~ how to save screenshot

Get help using Construct 2

Post » Tue Nov 05, 2013 3:39 pm

Is it possible to save a screenshot together a save game, that I could later on display in a load menu? If yes, how can I do that? (the picture shall not be saved on the game server)
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Tue Nov 05, 2013 3:42 pm

Save Images to Webstorage

So its possible, with some luck already someone made an plugin.Darklinki2013-11-05 15:43:28
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Tue Nov 05, 2013 4:30 pm

Check out the Clay.IO plugin. I played around with that recently and I think it may have enough functions to do what your asking.
Kurieus
Come visit and play Blast Box!
B
15
S
3
Posts: 205
Reputation: 1,349

Post » Tue Nov 05, 2013 4:42 pm

Thx Darklinki, now I understood how it is supposed to work and because of that understood the Construct 2 documentation.

So the solution to this problem is:
take snapshot
and then store CanvasSnapshot as value in the webstorage under whatever key you like. And later on sprite -> load from URL: webstorage.localvalue("whateverkey")

But I have another question: is it possible to reduce the size of the screenshot before I store it in the webstorage to save space, since it will be displayed as small version in the load menu anyway?mindfaQ2013-11-05 16:43:44
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786


Return to How do I....?

Who is online

Users browsing this forum: Syazanie Amirin and 12 guests