I am new to gdevelop. I created game using gdevelop. I exported to local folder.
Now I am trying to edit index.html.
I am trying to insert a banner . But gdevelop is blocking it .
What is happening is this
Also image becomes non clickable on gdevelop.
Right now I am expirminating on gdevelop pre loaded project before incorporating on main game.
Can anyone tell me the reason of this ?
Is there any button on which I should click so that banner becomes more important ?
I guess you have a z-index issue. You should not edit your exported project unless you know what you’re doing.
Why not insert the banner inside GDevelop?
You can but I would advise you not to do it. If you chose to still do it and you break GDevelop on your computer it’s your problem.
You can go in the installation folder of GDevelop, then in resources/GDJS/Runtime. The index.html template used by the exporter is located here. You can modify it and exports will contain the modified version.
Banner when clicked , should go to some other webpage which isn’t happening . Orientation of game was in middle for both desktop and phone . It has changed to left in desktop and up in phone .
This forum is for GDevelop.
If you want to make a clickable banner, you can do it inside GDevelop. Add your image object, and add a “Open URL” action when the object is clicked. You can change the z-order as you like.
If you want to make that banner outside GDevelop, you should go to another forum with HTML/js experts (stackoverflow, for example).
I’ll take your recommendation.
I’ll also go through adding js script within gd panel and not try to edit index.html as that can create problem with z-index . We’ll see what works.