How do I add a custom sound effect to a pickup item?
I converted my .wav to an .xm file using MilkyTracker and uploaded it into Voxatron.
But with the settings for my pickup item it only allows to activate a default sound.
I created the pickup item from scratch, it only contains the animation.
Then I added a script: play_sound(597) with activation control SOME ACTOR PLAYER COLLIDE ANY.
The object 597 is of type AUDIO.
Program runs, pickup disappears on collision but no sound.
I'd rather post my questions on reddit/voxatron but that subreddit is pretty dead.
@3oPiOdxcoi2P13BH if you post your cart it would be easier to try to figure out. I am wondering if no sound plays because
the item has been picked up and is no longer in the room. Try to have sound as a separate object in the room activated on item pickup. Something to try out keep us posted.
@3oPiOdxcoi2P13BH there is a second parameter in play_sound that isn't documented currently. There are three parameters, audio object id, sfx id, and fade in time (all of that is in order.) You are missing the sound id parameter, which is the SFX from the audio object you want to play.
Edit: This is the same case for play_music. If that solution doesn't work, check if your sound is muted (make sure to also check if the Voxatron sound/music is muted through the pause menu)
[Please log in to post a comment]