So I would like to make a dynamic template, which are able to play sounds based on the JSON structure. For example I had ["banana","apple"]. And when on start of the layout, they loaded automatically into the game. And when the player clicks on the Apple object, it would play the "Apple" audio.
Currently, what have I done is using Binary Data to store the response from AJAX, and get their url into the Audio Add Remote URL. It works for manually action, but when using the automatically looping system, it became error.
here's my project drive.google.com/file/d/1wqxsEKsH0bqBkWLI1tw0Z409YsD5qwKC/view
Develop games in your browser. Powerful, performant & highly capable.
Aha! I've found the way to doing that, but without the Binary Data object. So we can directly call the audio with the Remote url.