Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Jim Lengel, College of Communication, Boston University Web Wizard’s Guide to Shockwave.

Similar presentations


Presentation on theme: "Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Jim Lengel, College of Communication, Boston University Web Wizard’s Guide to Shockwave."— Presentation transcript:

1

2 Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Jim Lengel, College of Communication, Boston University Web Wizard’s Guide to Shockwave by James G. Lengel

3 Copyright © 2003 Pearson Education, Inc. Slide 6-2 Chapter 6 Building Basic Interaction

4 Copyright © 2003 Pearson Education, Inc. Slide 6-3 Objectives To understand how scripts work, why you need them, and how they are structured with the Lingo scripting language To learn how to write navigation scripts for a Shockwave project To learn how to control transitions with scripts To learn how to use scripts to control tempo To understand how to write scripts that perform if... then logic To examine some basic scripts that control sprites To learn how to create moveable sprites with drag-and-drop capability To bring these techniques together in your own Shockwave project

5 Copyright © 2003 Pearson Education, Inc. Slide 6-4 Scripts Why you need scripts How scripts work Events, commands, logic The Lingo scripting language Where scripts go On sprites On frames On cast members On the entire movie

6 Copyright © 2003 Pearson Education, Inc. Slide 6-5 What scripts can do Make things happen Jump to another marker Play a sound Change a condition Save information for later Check a conditon Switch cast members Move a sprite

7 Copyright © 2003 Pearson Education, Inc. Slide 6-6 How to find scripts In this book In the Lingo dictionary In Director Help In the Behavior Library Compose your own

8 Copyright © 2003 Pearson Education, Inc. Slide 6-7 Navigation scripts on mouseUp go to "somemarker" end mouseUp on exitframe go to the frame end exitframe

9 Copyright © 2003 Pearson Education, Inc. Slide 6-8 Transitions Frame transitions Puppet transitions Sprite transitions from the library palette

10 Copyright © 2003 Pearson Education, Inc. Slide 6-9 Controlling Tempo

11 Copyright © 2003 Pearson Education, Inc. Slide 6-10 Using Conditional Tests If…Then logic on mouseUp if field "typeithere" contains "mainsail" then go to "correct" else go to "incorrect" end if end

12 Copyright © 2003 Pearson Education, Inc. Slide 6-11 Scripts for Sprite Control Hide and Show ( visible ) Set location ( loch and locv ) Sprite collisions ( intersect )

13 Copyright © 2003 Pearson Education, Inc. Slide 6-12 Drag and Drop Sprites Make the sprite moveable Set up a target Script the mouseUp on mouseUp if sprite 3 within sprite 6 then beep else puppetsound 1, "boing" set the loc of sprite 3 to point(100,200) end if end mouseUp

14 Copyright © 2003 Pearson Education, Inc. Slide 6-13 Summary Scripts are the key to interactivity in Shockwave projects. Navigation scripts let the user of your Shockwave project go to other parts of the experience. You can use scripts to control transitions between frames in your project. You can also control the tempo of your project. If... then logic is a key component of scripting for interactivity. Simple scripts allow you to control the visibility and location of sprites and to determine when two sprites collide. Drag-and-drop experiences enable the user to manipulate elements of your Shockwave project on the screen.


Download ppt "Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Jim Lengel, College of Communication, Boston University Web Wizard’s Guide to Shockwave."

Similar presentations


Ads by Google