Dean's: http://www.deansdirectortutorials.com/Lingo/generic.htm
There are four types of scripts: behavior, cast member script, movie script, and parent script.
Behavior. If it is called sprite script, it looks like the other two use the same classification method.
In fact, behavior is the script on sprite or frame.
Let's take a look at the simplest behavior.
OnMouseupMe
BEEP
End
The advantage of this script is that it can attach to this sprite or that, and they can all beep at mouseup.
This script is also hard-coding.
Well, if you want to play the cast member sound called click, you need to write it as puppetsound 1, "click"
If it is written like this, it is hard-coded.
That is to say, if there is no cast member named click, this cannot be done.
This script is not quite common.
...
Useful commands:Playing sound
Puppetsound 1, "castname"
1 is the channel. If it is the behevior script, this parameter is not provided. You can directly write the voice cast name.
Why? You guess.
Useful commands:Update scenario
Updatestage
The updatestage will be automatically called when ctor enters the next frame. The update within the frame is actually...