Log In  

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.

P#109684 2022-04-04 15:56

did you copy your item from an existing one?
does it contain an sfx?
or does it contain code that plays sfx?

P#109869 2022-04-07 18:19

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.

P#109899 2022-04-08 09:07

sorry I can’t help! I don’t have experience with combining a script and the GUI activation controls.

have you watched the youtube tutorials for voxatron? some may show example sounds. otherwise let’s try tagging @zep !

P#109903 2022-04-08 11:35

@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.

P#111628 2022-05-10 18:37

@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)

P#122798 2022-12-21 07:03 ( Edited 2023-01-27 20:02)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 09:22:36 | 0.031s | Q:21