Is Using LunaLua for custom music easy?
Posted: Wed Feb 24, 2016 3:23 pm
Just want to know, I'm almost done with my crossover contest entry, and well, SMBX Problems.
Is there A lua?
Is there A lua?
Forums for SMBX
https://www.smbxgame.com/forums/
Code: Select all
if(insert condition here) then
Audio.SeizeStream(player.section);
Audio.MusicOpen("music/your music here.mp3");
Audio.MusicPlay();
end
Code: Select all
if(insert condition here) then
Audio.ReleaseStream(player.section);
end
I also need this code for MxW3. Thank you ^^Linik wrote:You mean changing between custom music tracks? Yeah, there is a way to do it. The example given here changes the music based on a certain condition in the level.
To change back to the standard level music, use this:Code: Select all
if(insert condition here) then Audio.SeizeStream(player.section); Audio.MusicOpen("music/your music here.mp3"); Audio.MusicPlay(); end
Code: Select all
if(insert condition here) then Audio.ReleaseStream(player.section); end
Q : what is a "condition" code in SMBXinsert condition here
Code: Select all
play = false
function onLoop()
if play then
Audio.SeizeStream(player.section)
Audio.MusicOpen("music/your music here.mp3")
Audio.MusicPlay()
end
end
function onEvent(eventname)
if eventname == "musicPlay" then
play = true
end
end
oh. i'll just use the standard underground music thenHenryRichard wrote:It's easy, but The Thwomp King banned it from that contest.
I think he wants to use more than one custom music per section which can't be done in vanilla SMBX.TheSaturnyoshi wrote:I don't see why you wouldn't be able to just use MP3s, those are available in vanilla SMBX.
I suggest you caaarefully reread the topic title.timocomsmbx2345 wrote:All you have to do is select custom on the level settings, but make sure your music is in your level and/or episode folder. Plus it has to be MP3 music.
I use the legacy editor because it's easier.Enjl wrote:I suggest you caaarefully reread the topic title.timocomsmbx2345 wrote:All you have to do is select custom on the level settings, but make sure your music is in your level and/or episode folder. Plus it has to be MP3 music.
That's not the point of the topic.timocomsmbx2345 wrote:I use the legacy editor because it's easier.Enjl wrote:I suggest you caaarefully reread the topic title.timocomsmbx2345 wrote:All you have to do is select custom on the level settings, but make sure your music is in your level and/or episode folder. Plus it has to be MP3 music.