Skip to main content
sammyueru
Participating Frequently
November 25, 2021
Question

HTML5 Canvas builds and tests only showing background

  • November 25, 2021
  • 2 replies
  • 662 views

Hi there,

So I was having a problem with whenever I try to build or test my HTML5 canvas game created with adobe animatethe only thing the browser draws is the gray background (Which is not a layer it is the document background setting). I don't know if its maybe because theres a problem with my script or what but there was this weird thing where the actions symbol layer was not there and I had to take it out of another adobe animate html5 canvas project file (with a copy and paste).

 

Thanks in advance for your help.

    This topic has been closed for replies.

    2 replies

    Colin Holgate
    Inspiring
    November 25, 2021

    Don't know about the folder question.

    I when testing HTML5 Canvas you see a blank browser window, it's likely to be a security issue. While you are working on the files locally, you could go into publish settings and turn off the options to make a spritesheet or texture map. Then the images are separate, and less likely to cause security issues.

    You also can use the brower's developer tools to look at the JavaScript Console. That will show you if there are script errors.

    sammyueru
    sammyueruAuthor
    Participating Frequently
    November 25, 2021

    It's still not working however I am getting these errors

     

    sammyueru
    sammyueruAuthor
    Participating Frequently
    November 25, 2021

    Oh but I've been trying to fix those but even when I fix those in adobe animate it doesn't seem to update the html and js files on build

    sammyueru
    sammyueruAuthor
    Participating Frequently
    November 25, 2021

    Oh, also I have another question; does anyone know how you can hide everything in a folder through a script? Is that even possible? Thanks