Director sample focusing on transitions and introducing the use of sound.

TRANSITIONS. Transitions are generally used to control the flow from one screen (frame) to another, but they can also be used to transition the entrance or exit of individual sprites.

Four things can be controlled regarding transitions: transition type, duration, smoothness, and area affected. These are access directly by double clicking the transition effects channel in the frame desiring the transition or by using Lingo

puppettransition 25, 4, 2, 1
25 - transition type, 4 - duration,
2 - smoothness, 1 - area effected=changes only

PROBLEM. Transitions and go to the frame cause undesired results on the stage. SOLUTION use the 3 FRAME MOVIE, which is a score layout technique.

Make all Sprites 3 Frames long
     Frame 1 setup (marker & transition)
     Frame 2 hold frame (frame script)
     Frame 3 cleanup

SOUND

SOUNDLEVEL
This property sets the overall volume on the host computer.
The range is 0 – 7 with 0 being mute and 7 being max volume.
set the soundLevel to 5

VOLUME
This is used to set the volume on individual sounds.
The range is from 0 - 255.
set the volume of sound 1 to 200

TURNING ON THE SOUND AT BEGINNING OF MOVIE
In frame script frame 1 (or in startmovie script) turn on computer audio and specific sound channels
     on exitframe me
          set the soundlevel to 5
          set the volume of sound 1 to 200
     end

\AUDIO MUTE code
     on mouseUp me
          set the volume of sound 1 to 0
     end

AUDIO VOLUME UP code
     on mouseUp me
          set the volume of sound 1 to 250
     end

CONSOLIDATE CODE TO ONE BUTTON
Conditional Statement (Argument)
     on mouseUp me
          if the volume of sound 1 > 0 then
               set the volume of sound 1 to 0
          else
               set the volume of sound 1 to 250
          end if
     end

TICKS
Directors measurement of time
     60 tics = 1 second

SOUND FADEIN/FADEOUT
Sound fades in in audio channel 1 for 60 tics (1 second)
     sound fadein 1, 60

Sound fades in in audio channel 1 for 60 tics (1 second)
     sound fadein 1, 120

Sound fades in in audio channel 1 for 60 tics (1 second)
     sound fadein 1, 3*60

Sound fades out in audio channel 1 for 60 tics (1 second)
     sound fadeout 1, 60

What handler (frame script – on exitFrame or sprite script – on mouseup) is used depends on WHEN you want this to happen…enter video section, conclusion of credits…etc

Video Button
     On mouseUp me
          sound fadeout 1, 60
          go “video”
     end

On a separate note. The gliding verticle bar stretching back and forth across most of stage was created using a rectangular Director vector shape animated, middle shapes ink mode set to reverse and top and bottom bar set to darken. This was then dragged to the cast to create a filmloop, which was then laid in the score.

© 2003 KATHRYN KELLEY (INTERFACE AND DESIGN ORIGINAL WORKS OF KATHRYN KELLEY).