• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

HTML5 How to save screenshot of HTML5 Canvas?

R

rbfraphael

Guest
Hi :)

Recently, I need to make some web apps and games that needs to save an image on device. I'm using GameMaker 1.4 and it's doesn't have a function to do it. So, I'm trying to find "out of box" solutions for this problem (using JavaScript).

I used the Canvas2Image library and toDataURL function, but won't worked correctly :\

Someone can help me about this? :)

Thnx :D
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
Someone asked about this a few weeks ago and I made this extension. Works 100% if WebGL is disabled, does not work on select machines if WebGL is enabled - screenshots comes out blank (GPU-specific?).
 

chmod777

Member

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
Top