When I preview the index.html via Brackets, the files works and I can see the music player:
Obviously the images and music are broke.
I have added the .js code to an event but nothing happens:
- How do I get the js music player to display in GD, I presume its not displaying as its the .index file that creates and glues all the other files together and I only have the .js code?
- How do I get the js music player to display in GD where I want it to, create it in a box or use css?
Any help would be amazing.
If there is an easier way, that would be great!
I created a text box and assigned the code to it:
The problem is that HTML and CSS are not supported.
I am pretty sure this cannot be done.
What you’re asking for is possible, but the “how to” questions you provided can really only be answered with:
Outside of those two items, there isn’t really any other way for you to proceed, and others on the forums aren’t really going to be able to supplement the above requirements.
You need both because you must understand the underlying code of the music player enough to be able to modify it/call its actions, as you’re going to need a way to pass information to/from the GDevelop API and events in order to be able to utilize it at all.
It is definitely possible, but it is not going to be copy-and-paste in any form whatsoever.
“you must understand the underlying code of the music player enough to be able to modify it/call its actions” - I can do that, I know HTML & CSS pretty well.
What I don’t know is what GD supports.
I tried HTML, it does not work.
This is simple code but its GD that cannot connect the files:
Am I wrong?
Got it, thanks for explaining, it just clicked:
The HTML and CSS are wholly irrelevant as they’re just being used for visuals, and you’d be using GDevelop to set up the visuals (objects/placement/etc), not the HTML/CSS.
Leave it to me, I’ll be back.
Glad to hear it, good luck!
(Also I wanted to drive you away from thinking about the HTML5 because a ton of code snippets out there use C# instead of JS)