- This topic has 7 replies, 3 voices, and was last updated 2 hours, 17 minutes ago by
kdv.
-
AuthorPosts
-
2025-03-13 at 9:57 am #80586
c4cc
ParticipantI wanna activate sound effects each time a non-playable object comes into effect with a player. Yet sounds can only replay when it finishes. How can I restart sound effects each time player comes into contact with non playable objects?
Think of video games where sound effects plays whenever items are picked up, notice if two or more of the same items are picked up, the latest item pickup will restart the sound effect in question
main part of puzzle her:
app
https://drive.google.com/file/d/17rN615AO70eipMGFgFxIKzgyeuHk5HcX/view?usp=sharing2025-03-13 at 11:53 am #80594Mikhail Luzyanin
StaffJust copy the sound three or four times (for example sound_1.wav, sound_2.wav) and then play them randomly with checking if the current sound is playing or not. You can find a working axample of this in Snowball_VR demo.
-
This reply was modified 20 hours, 31 minutes ago by
Mikhail Luzyanin.
Attachments:
You must be logged in to view attached files.Co-founder and lead graphics specialist at Soft8Soft.
2025-03-13 at 8:10 pm #80600c4cc
ParticipantThanks, I tried it but sadly sound did not restart while playing when player came into contact with other items. sounds only restarted when it finished.
2025-03-13 at 9:30 pm #80604kdv
Participantstop sound;
play sound;Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2025-03-14 at 3:32 am #80605c4cc
Participant2025-03-14 at 4:44 am #80608kdv
ParticipantPuzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2025-03-14 at 5:55 am #80610c4cc
ParticipantThis works kdv, thanks. Need to run a couple more tests though to be safe.
-
This reply was modified 2 hours, 15 minutes ago by
c4cc.
2025-03-14 at 6:07 am #80611kdv
ParticipantThis works
really? no sadly and no mistakes? it’s magic
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
-
This reply was modified 20 hours, 31 minutes ago by
-
AuthorPosts
- You must be logged in to reply to this topic.