Hello, I've been playing around with solarus trying to get a feel for the engine and ive run into this error I know its probably a simple answer but for the life of me I cant seem to figure it out... here is the code..
when i launch the game and press "L" the boss music ought to play but instead the console says "No such music: 'boss' " the music that is set to play in the map editor works fine, but for some reason I cant get any music to play via the script. the rest of the function works fine and playing a sound effect with a key also works fine
could I get some quick help with this? thank you!
Quoteelseif key == "p" then
sol.audio.play_sound("bush")
elseif key == "l" then
sol.audio.play_music("boss")
elseif key == "[" and sol.audio.get_music() ~= nil then
last_playedmus = sol.audio.get_music()
sol.audio.stop_music()
elseif key == "[" and sol.audio.get_music() == nil then
sol.audio.play_music(last_playedmus)
end
when i launch the game and press "L" the boss music ought to play but instead the console says "No such music: 'boss' " the music that is set to play in the map editor works fine, but for some reason I cant get any music to play via the script. the rest of the function works fine and playing a sound effect with a key also works fine
could I get some quick help with this? thank you!