You can run an event that invokes lua code to change the music in a section. Here's an example, using the event "changemusic" to set the music to "bossfight.mp3". For different names, just replace changemusic with the name for your event, and the path to the music to what you named yours. OnEvent executes when ANY event is triggered, so by having multiple if-statements, you can do this multiple times for different events. The music path is relative to the level folder (folder with the name of the level file that is placed in the same folder as the level file).
Code: Select all
if eventname == "changemusic" then
If you're unsure how to get a lua file to do this, you can find the button "level local (luna.lua)" in the "script"-menu option at the top of the editor.