Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Wulface

#1
That's awesome!
Thank you very much :)
#2
Development / Looping music with a non-looping intro
March 21, 2017, 09:02:02 PM
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 :
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!