Image path

Get help using Construct 2

Post » Fri Mar 23, 2012 10:09 am

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
B
3
Posts: 8
Reputation: 316

Post » Fri Mar 23, 2012 6:22 pm

@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.)
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Sat Mar 24, 2012 7:46 am

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
B
3
Posts: 8
Reputation: 316

Post » Mon Mar 26, 2012 7:48 am

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
B
3
Posts: 8
Reputation: 316


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests