Start a sound/music when the player reach a label/ new scene?


#1

Hi,
I was wondering something : is there a way to trigger a sound (without the player needing to press a button to start it) when the player a certain label or scene ?
Like changing the music / put a special sound for a special passage in the game. Is there any way to do this ?


#2

Hmm, I’m not sure. I didn’t know you could do sounds with buttons in the first place.


#3

Ive been able to do that for awhile make sounds with buttons but I really doubt it’s possible to make sounds happen at certain texts right now, unless you can code in some kind of delay


#4

Too bad then :frowning:
Thanks for telling me.


#5

*script //js code for e.g. music.play()

If that doesn’t make any sense to you, then no you can’t. We’re not supposed to get into detailed discussions on JavaScript and CS doesn’t natively support sound or music.


#6

Ok, it works. Thanks CJW !