Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

(Windows 10 desktop)

I can get the demo to run and everything, so I thought I'd try something simple as a starter. I substituted a picture (and edited assets.js). The demo still ran, but with a big hole where the image should be. What am I doing wrong?

Here's the image I used (not mine, just found it somewhere)


the filename of this image has a forward slash in it. I would try removing that first, special characters in filenames often cause issues. 


Otherwise:

  • check the file is in the right place as the other images and the url path to it is correct.
  • check that your list of images has a comma at the end of every line except the final line.
  • check the ID you give it starts with BG_ and that you call the correct ID in the script.

if all of them check out, bring up the developer tools when you have the game in browser (f12), go to console, see if it spits out an error.

Hi - thanks for the prompt reply.

The filename doesn't have a forward slash in it - that's the file path, and the file is in the same directory as the "station" one I replaced.

The console does spit out an error:


...but I honestly can't see why:


The file is in the right place:


I thought I'd try the simplest possible edit, and it hasn't worked.

the hallway image you uploaded in the last post was a .png, but the code screenshots are looking for a .jpg. did you convert it or just change the file extension? that's all I can think of right now.

No. I originally used a png file, that didn't work, and so I went back to Photoshop and saved out a jpg file. That didn't work either. So, if you don't know what it is, I sure as hell don't! That's it for me...