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?
var imageFile = document.getElementsByTagName("canvas").toDataURL('image/png');
document.write('<img src="' + imageFile + '"/>')
This code take a screenshot, but appear only a black image.