Community
SCI Programming => SCI Syntax Help => Topic started by: MusicallyInspired on February 19, 2016, 11:28:50 PM
-
I forget how to do this. Do I just add "self" or whatever script is supposed to be triggering on the end of "play:"? Is this even a thing?
-
When a Sound has finished playing (or a cue marker is encountered), it will cue() whatever object was passed to play. Oh hey look, there's some documentation:
http://scicompanion.com/Documentation/Classes/Sound.html
If that object is a Script, then that Script will have its changeState called with the next state (since that's what Script:cue() does).
There's a room in my "SCI Quest" game that does this (the one with the video screens with sound waves)
-
I'm sorry, I did some searching and couldn't find what I was looking for in the help. I guess I'm tired. It's right there. Thank you. I feel really stupid now.