Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 scriptScript, drag a Playable Content Screen Message into a frameFrame:

...

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 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 Frame will be created. The Condition will be an Object Event condition 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 frameFrame by clicking the + button on the Welcome frameFrame:

...

2. Name the new frameFrame “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 resourceResource to the frame Frame and add your voice-over audio file to the media frameFrame:

...

We only want this audio to play when:

...

5. Add 3 Seconds into Timer Condition Delay:

...

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

6. Drag an Object Event Condition into this frameFrame. 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 Conditions must be true for the audio to play.

...

D. Negate Result: Checked. This means, for the Object Event condition Condition check the opposite. The Object Event condition 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 Condition asks:

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

...

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 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 Frame will never activate. It will also close the frame Frame immediately. If the learner clicks the “OK” button while the voice-over hint is playing, the close frame Frame will stop the audio from finishing.

Related Articles

Add Conditions