Hey there!
I am currently working on my Zelda starter pack, using Solarus.
I am still learning the ropes of Lua programming and I'm facing this situation, hoping I could get some help!
I use custom OGG musics, and some are separated in two files. For example, in Orion village, the game should play the content of "orion_start.OGG", then loop "orion.OGG".
This is what I tried :
I see that there is an error because even thought the console is not giving me any error code, only orion_start.OGG is looping.
Understanding this principle on functions will help me alot in my comprehension of the Lua language, I hope I can get some help!
Thank you all!
I am currently working on my Zelda starter pack, using Solarus.
I am still learning the ropes of Lua programming and I'm facing this situation, hoping I could get some help!
I use custom OGG musics, and some are separated in two files. For example, in Orion village, the game should play the content of "orion_start.OGG", then loop "orion.OGG".
This is what I tried :
Code ( lua) Select
function map:on_started()
sol.audio.play_music("orion_start", sol.audio.play_music("orion", true))
I see that there is an error because even thought the console is not giving me any error code, only orion_start.OGG is looping.
Understanding this principle on functions will help me alot in my comprehension of the Lua language, I hope I can get some help!
Thank you all!