mp3 mind telling me what are the others?????do you wanna use midi or mp3/ogg/aiff
local audio = audio_stream_load("AUDIO_FILENAME.mp3")
function on_warp()
audio_stream_play(audio, true, 1)
end
hook_event(HOOK_ON_WARP, on_warp)
In your mods root folder, create a text file. Post the following in that text file:how to i put this code in is there some application i need to install or????
Save that file as "main.lua". You don't need another program. Any basic text editor should work.create a sound folder in your mod's folder, put the mp3 audio file in it and use this code (you will need to change it to fit what you need):
LUA:local audio = audio_stream_load("AUDIO_FILENAME.mp3") function on_warp() audio_stream_play(audio, true, 1) end hook_event(HOOK_ON_WARP, on_warp)
hey can you make it so that it replaces the main audio? Because you can hear it, but you can also the hear still hear the slider theme in Peaches Secret Slide along with it, for example.In your mods root folder, create a text file. Post the following in that text file:
Save that file as "main.lua". You don't need another program. Any basic text editor should work.
yeah, here's the code:hey can you make it so that it replaces the main audio? Because you can hear it, but you can also the hear still hear the slider theme in Peaches Secret Slide along with it, for example.
local audio = audio_stream_load("audio file.ogg")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_LEVELNAME then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
audio file.ogg
and LEVEL_LEVELNAME
to level you want to replace the music, for example LEVEL_BOWSER2
or LEVEL_JRB