Image path

0 favourites
  • 4 posts
From the Asset Store
Move around the rectangular and travel as much as you can!
  • I have a javascript error because it can't find my images folder( I don't use the iframe solution)

    How can I do to specify my own image path ?

    thx

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • fabien ???

    You need to provide more info. What JavaScript error? Where/when does it appear? Why are you trying to access your images folder directly, instead of using animations?

    (It rather sounds as if you're not working within Construct 2.)

  • Hi,

    I will try to be clear :|

    There are 2 ways to embed our games in an html page :

    1) with an iframe, it works

    2) to copy the code in our own page, but that's where I have an issue :

    the path used in the javascript code is ./images/.... to access the images files

    I am using a PHP framework and this path doesn't work, I need something like that public/assets/img/... to access my files

    so how can I do to change this path ?

    thx

  • Ok I found it, when I export my game, I can fill an images path, and write a strange name like cocorico

    I just have to edit the js file after and replace cocorico with my real path

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)