Jump to content

song script when touched to an object


konebii
 Share

You are about to reply to a thread that has been inactive for 1446 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

hi i uploaded 4 wav files.
a1-a2-a3-a4
and i put them in a box.
i need a script which makes a user to touch the object and start listening those files in order. 

but cant find any script which can do that.

i found a script, but only i can touch the box and listen the song. when someone else touches the box, song doesnt start

 

do u know simple script which can do that?

Link to comment
Share on other sites

Sure.  All you have to do is put the files into a list in order and then trigger them one after another in a timer event. Just be sure that all your files are exactly the same length so that they play without gaps or overlaps. I suggest using preloading all sounds before you actually trigger them.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1446 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...