(Request)How can I play custom sounds?

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
Shodax
Fighter Fly
Fighter Fly
Posts: 42
Joined: Sat Feb 05, 2022 2:24 pm
Pronouns: he

(Request)How can I play custom sounds?

Postby Shodax » Sat Nov 05, 2022 7:58 pm

Hello. I wanted to know how I can do to play a custom sound every time an event is triggered. I don't know if this script works

Code: Select all

function onEvent(eventName)
	
	if eventName == "gumba" then
        SFX.play("detrasdeti.mp3")
   end
   
   
end

Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari