Tutorial: Page (1) of 4 - 10/12/04 Email this story to a friend. email article Print this page (Article printing at MyDmn.com).print page facebook

DVD Studio Pro Scripting, Part 2

Creating a score counter for interactive quizzes By Dave Nagel
In our first look at scripting in Apple's DVD Studio Pro, we explored methods for creating "view previous" buttons by storing information in our General Purpose Register Memories, or GPRMs. This time we take it a step further by setting values for multiple GPRMs and using math to keep track of these values as they build up. Why? Well, we're going to set up a quiz for our viewers that will allow us to keep score and dole out rewards and punishments as we deem appropriate. Sound difficult? It really isn't. Trust me.

For this example, we're going to create an interactive quiz consisting of five questions. Those who score four out of five correctly will gain access to a special feature on our DVD, while those who can't do so will be offered a chance to try again or just give up and return to the main menu. In order to do this, we're going to create three scripts, plus however many menus we consider appropriate for presenting the questions and providing feedback.

Before you get started, if you haven't done so already, you might want to go back and read the first installment in this series, DVD Studio Pro Scripting, Part 1.  Otherwise continue on. Incidentally, in case you're eager for more, our next installment in this series (to be posted next week) will add a timer to this quiz for even more fun ... or frustration, depending on how you view these kinds of things.

The menus
For this particular project, we need to create a total of eight menus. They are as follows: The introductory splash screen; one menu for each question in the quiz (five total); and two splash screens to announce the results of the quiz (one for success, one for failure). Here are the details of the individual menus.

The introductory splash screen will consist of just a background and a single button to get the quiz started, though you might also add a button for users who want to go back to the main menu rather than proceeding.

The menus for each of the questions will consist of a background graphic, some text (the question itself) and four possible answers, each one being its own button.

And then the final splash screens will each announce the results of the quiz. The "success" splash screen will then include two buttons: one to link to the special bonus feature as a reward for completing the quiz successfully and one linking to the main menu. The "failure" screen will include a "try again" button, which will link to the introductory screen once again, as well as a "main menu" button for those too frustrated to go on.

Here's how the elements are viewed thusfar in my Outline view.

With the exception of the "main menu" and "try again" buttons, none of these buttons will be connected to any fixed target; rather, they'll connect to scripts, which we'll create in the next section.

Page: 1 2 3 4 Next Page

Related Keywords:apple dvd studio pro, dvdsp, scripting, interactive, quiz, game

Content-type: text/html  Rss  Add to Google Reader or
Homepage    Add to My AOL  Add to Excite MIX  Subscribe in
NewsGator Online 
Real-Time - what users are saying - Right Now!

Our Privacy Policy --- @ Copyright, 2015 Digital Media Online, All Rights Reserved