Posho
Member
Hello,
I am working on an HTML5 game that uses an image export button. I have an extension that allows me to save the game's screen to an image in HTML5 but only works if WebGL if off, however my game overall does require the use of WebGL.
My first idea around this is to save the data that will be necessary for drawing the screenshot in a local INI file, then open a new tab that would load a completely different HTML5 game, load the INI file, draw the contents and finally prompt to save the image. The only issue here is that by the nature of how Working Directories work in GameMaker: Studio function, I am having trouble with reaching/reading the INI file in the second HTML5 game.
What could be a solution to this? My other idea would be to save the INI file in a web server and then reach it from the other game through an URL, though I feel that this would be a pretty lazy and inefficient way to solve this.
I am working on an HTML5 game that uses an image export button. I have an extension that allows me to save the game's screen to an image in HTML5 but only works if WebGL if off, however my game overall does require the use of WebGL.
My first idea around this is to save the data that will be necessary for drawing the screenshot in a local INI file, then open a new tab that would load a completely different HTML5 game, load the INI file, draw the contents and finally prompt to save the image. The only issue here is that by the nature of how Working Directories work in GameMaker: Studio function, I am having trouble with reaching/reading the INI file in the second HTML5 game.
What could be a solution to this? My other idea would be to save the INI file in a web server and then reach it from the other game through an URL, though I feel that this would be a pretty lazy and inefficient way to solve this.