Construct has this feature and I am wondering if GDevelop has the same? Thank you!
No GDevelop doesn’t has that option. What would be the point of it?
it’s for making playable ads.
ah those misleading ads where there are pins where the acutal game is completeley diffrent
i’ve seen those kind of misleading ads but i’ve never encountered one that is a playable ad…
if this was posible then you cant have Pictures you will only have text and colors Bc if there only was 1 file
you cant have icons and photos and it wont could handle alot of programing the best solution to make only 1 HTML file and no icons and photos is to find an online text to Html file converter
it’s possible with the help of Base64…
the images store in data.js file with name and format e.g nextButton.png. how do you use base64 for this?
I replace the base64 code with nextButton.png in data.js but nothing is shown on the screen and the button disappeared.
how do you use the base64 format and where do you import that?
in data.js, just replace the filename with the data URI. here’s an example:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdIAAACECAMAAAATHlpaAAACXlBMVEUAAAD///////////////////9kqOP///////9nrOP///////////////////////////////////////////////////9Znts4gco7gso5gcs8g8xZntz///////89g83///////86gss+hc5Qk9f///////////9FjPxAhs5QlMz///9Eh87///9Fhs3///////////////86gsv///////////////////9Ljtj///////8+hc3///9Bhs7///////87g8z///8/hc1Ah8////////////////////9Ahs5Bhs47g8w7g8w9hc0/hs3///9eot7///9OktZdn9z///89hMz///8+hc4+hs0+hc7///////9Sltf///////////9Wmtr///9Cis////////9Xm9r///8/hc4/hc1lq+P///9Ah8////9BiM9Bh87///////////9mrOT///////8/hc5lq+L///9Cic////////9jqOFXnNplquP///9Wmtr///////9Sltg/h85dot5RlthkqeL///////9jquJantw8hMw9hM1mq+P///8/hs5jpuE4gMtnrONVmdlmq+NPlNZnrONPk9ZkquJAhs5fpOBPk9Y8g8xTl9hVmtpZnttQldb///9QlddXnNphpeD///9jqOFPlNZnrORPlNb///9mq+NepN9jqeFWm9pcot43f8n///9nrONTmNhmq+NYndtkqeJWm9pSltdQlNZVmdlOk9ZNkdVVmtlXnNpRlddhpuA8hMxjqOFfpN9eo95cot1an9xboN1gpd8Aqb7oAAAAsXRSTlMARzgD2PaZLafdjN2TU+p78ohNRDL9mcz+7fvhvMQM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Y9RBtGvqQx1ykvgqKBxHIr68xF+qIJUDSarviK5pLPVB4U+4TETERSqxaZUeNzn9GVmwxpRJ2hyZw6XrNPSSzgeX4nBPVyakGNzn1PVzpeWbXfkKLpv1eiazkl8++GGrB0yWnJzJzg7x+hDAKR/v7+mZpe3i7BDKOAXgAA+JHO32+pU38AAAAASUVORK5CYII=
let me know if it works
Yes, thanks
file: data:image/png;base64,
I replace the file value with the base64. I should add data:image/png;base64,
at the beginning.
Is it possible to link the image and read from the server?
for example, upload all the images and then in the data.js link to uploaded images and read from that files.
that’s a different topic, i think. you should probably start a new thread here: How do I...? - GDevelop Forum
heres one way to have your gdevelop game run as a html file:
step 1: export ur gdevelop game as a html folder
step 2: upload all the files from the folder (not including the “index.html” file) to some file hosting site (or upload the files to a website you own)
step 3: in every single code file, change the file paths to the file path from the website that has your files
step 4: run the html file and if you did everything correctly then your game should run
this method needs wifi whenever you run the file, but that shouldn’t be a problem