Ask here your questions to get help using GDevelop.
By Joao Paulo
#65794 Hello Everyone!

It's my first post and I am so proud to take part to the Gdevelop community.
I am making a html5 game, and my question is?
Is there way to take a screenshot to the game canvas area and save this in a image file?

I tried via javascript code:
Code: Select allvar imageFile = document.getElementsByTagName("canvas")[0].toDataURL('image/png');
document.write('<img src="' + imageFile  + '"/>')


This code take a screenshot, but appear only a black image.
Any suggestion?

Thanks :)