Presentation is loading. Please wait.

Presentation is loading. Please wait.

Interacting with Director Howell Istance. Overview n There are two means of controlling a movie - using the Director score directly - using scripts written.

Similar presentations


Presentation on theme: "Interacting with Director Howell Istance. Overview n There are two means of controlling a movie - using the Director score directly - using scripts written."— Presentation transcript:

1 Interacting with Director Howell Istance

2 Overview n There are two means of controlling a movie - using the Director score directly - using scripts written in Lingo n In this lecture we will look at - moving between scenes in a movie defined by markers - using global variables - using different scripts (or behaviours) - changing the cast members associated with a sprite

3 Simulating an ATM n The ATM consists of a image with invisible Director buttons overlaid on the parts of the image which represents the ATM buttons n Each scene consists of bitmaps (or text) corresponding to the messages which appear on screen n run movie ‘atm65.dir’

4 Using the tool palette n The tool palette allows you to create buttons (which may be invisible) which can be placed over an image n Attaching a ‘Go to Marker’ behaviour to the button lets the movie branch to the required scene (used for graphics menus) n Recall in the tutorial the behaviour was attached to a text sprite

5 Global variables n These contain values which are visible between behaviours and which can be manipulated by Lingo code in individual scripts. n User-defined behaviour = script n example: counting the numeric keystrokes to enter a PIN number

6 Levels of script Scripts may be n global to the whole movie (active through out the whole movie) n attached to a frame (only active when the playback head is at that frame n attached to a sprite within a frame (apply only to one sprite within the frame currently being played

7 Changing the cast member associated with a sprite n We may want have several visual changes taking place at the same time (e.g flashing lights on a control panel) n Using marker and frames would mean that all combination would have a separate frame (which quickly leads to many frames) n Instead, we can change the actual cast member associated with a sprite at run-time, using a script n run movie ‘face65.dir’ - you will also need ‘face1.avi’ in the same directory as the movie

8 Lingo Script On mouseUp me set the memberNum of sprite 1 = 2 end Sets the cast member of sprite 1 (by default, cast member 1) to cast member 2

9 find out more... n Director’s help function contains several movies of the type you saw in the ‘Learning Director’ tutorial n Go to ‘Help->Director Help’ n click on the ‘Show Me’ button at the bottom of the chart n ‘Behaviours’ is one of the feature demos, play it.


Download ppt "Interacting with Director Howell Istance. Overview n There are two means of controlling a movie - using the Director score directly - using scripts written."

Similar presentations


Ads by Google