Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This example shows how to give the user a message after a certain amount of time has passed. This can be a useful way to give the user a hint.

We will create a simple script with a screen message. If the user does not click the “OK” button on the message after three seconds, a voice-over will play asking the user to click “OK”.

This method will work for any type of hint that uses a timer.

Step 1 - Add a Screen Message a Script

1. In a new script, drag a Playable Content Screen Message into a frame

2. Give the Screen Message a title and some text

Step 2 - Add a Notification After the Welcome Message Closes

When the learner does click the “OK” button, the welcome Screen Message will close. Let's make a notification appear in that case.

1. Click the Event Link Shortcut at the bottom of the Screen Message and select Close

A new child frame will be created. The Condition will be an Object Event condition checking to see if the Screen Message has closed.

2. Add a Notification to the Resources area and add “Done!” in the Message field

When the learner closes the Screen Message, a Notification will appear that says “Done!”.

3. Save

Step 3 - Add a Frame with a Timed Message

At the moment, the script looks like this:

1. Add a new child frame by clicking the + button on the Welcome frame

2. Name the new frame “Timed Hint”. We'll add a voice-over that will remind the learner to click the “OK” button. If you haven't yet created a voice-over audio file, you can do that by following the steps in this article.

3. Add an Audio resource to the frame and add your voice-over audio file to the media frame

We only want this audio to play when:

  • Three seconds have passed since the Welcome screen appeared

AND

  • The Welcome screen has not been closed (the button has not been pressed)

For the first part, we can use a Timer Condition.

4. Add a Timer Condition

5. Add 3 Seconds into Timer Condition Delay

We want to add a second condition to this frame. If you'll remember, the frame with the Notification has a condition that is waiting for the Welcome message to close. We want the opposite of that for our second condition in this frame.

6. Drag an Object Event Condition into this frame. This will create a Compound Condition with the Timer Condition we just added and the Object Event Condition. 

A. Operator: This is set to AND. This means both conditions must be true for the audio to play.

B. Script Object: Welcome message

C. Event: Close

D. Negate Result: Checked. This means, for the Object Event condition check the opposite. The Object Event condition is checking if the Welcome message is closed but since this box is checked, it means, anything except closed.

Recap

In plain language, this condition asks:

"Have three seconds past and is the welcome message is not closed?"

If that is true, the voice-over audio will play. That might be enough. There is one final step that can be used or not.

As it is, if the voice-over audio starts playing and the learner clicks the “OK” button before the audio has finished, the audio will play until it is done. If you want the audio to stop immediately when the “OK” button is clicked, go to the next step.

Step 4 - Close the Timed Hint Frame

If the learner clicks the “OK” button, the timed hint isn't needed anymore. We can close the frame that contains the hint once we know the learner has passed that point. Once the Notification is displayed, we know that the “OK” button has been clicked.

1. In the Notification frame, add a Close Frame Resource

2. Select Timed Frame in the Frame drop-down

3. Save

Now the Timed Hint frame will close as soon as the Welcome screen “OK” button is clicked.

A closed frame will never activate. It will also close the frame immediately. If the learner clicks the “OK” button while the voice-over hint is playing, the close frame will stop the audio from finishing.

  • No labels