File works in preview but not export


(mmatera) #1

Hello, I have been working on a project with a friend who knows Javascript. We have the whole project working when we do the test preview. However, when we export it and try to play the game all the images and sounds don’t transfer over.

The exporter says something about cannot preload audio and An MP3 audio source is required. Even though the old wav files worked in earlier protypes.

Aditionally, many of the images are not loading as well.

Can someone advise me on how to proceed?

Thanks


(Mark Hunte) #2

Next to impossible to help without seeing an example of the project and JavaScript.

But i suspect the JavaScript is the issue


(Hans-Gerd Claßen) #4

you should replace every hardcoded

index.hyperesources/

with

${resourcesFolderName}/

or export the file with the name ‘index’