Problem loading an image on a web server

Hi ! So, I know you need to set up a server if you want loadimage() to work properly, so I did, then, write my code : everything works, perfect.

But the problem now, is that when I try to upload my mini game on a website, the images won't load... I'm using 000webhost to host my website.

Basically, my code works on a local server but not when it's uploaded on a web server :-/

 var bg;
 bg= loadImage("./src/images/bg");

If someone had the same problem and know how to fix it, it would be great if you help me ! Thank you :)

Answers

Sign In or Register to comment.