Introduction
For over 2 years, we have realised one problem with Stencyl after publishing to HTML-javaScript format in the coputer that is stuck in preloader that happens in all the game we export and release to our computer and also the stencyl workspace folder > www ripoffs
Alternatively using Flash in Stencyl 4.0 or later which is very lag. and in Stencyl 2.x gives choppy graphics.
Our findings.
based on stencyl workspace folder > www
The first function to go through is application main > create. Any return within this function berore the last command results in black screen.
sequences: ApplicationMain.create() >
dubugger cinsole : rignt click on the game > inpsect. Then right panels pops up > console tab.
it appears that is the CORS policy that blocks the assets.
There is one way that will work and finding other ways in future. this is what you .bat file should be the instruction to launch your HTML-js StencylWork should be. In this case, the browser is Microsoft edge
@ECHO OFF
ECHO TO PLAY THIS GAME,
ECHO 1.click on index.html and the blocked game will not load on default window due to CORS.
ECHO 2.copy the address to the window opened by this batch file.
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --user-data-dir=C:\msedge-dev-data\ --disable-web-security
pause

No comments:
Post a Comment