...
We will create a simple script with a screen message. If the user does not click the 'ok' “OK” button on the message after three seconds, a voice-over will play asking the user to click 'ok'“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 need the right condition. We only want this audio to play when:
...
For the first part, we can use a Timer Condition.
4. Drag Add a Timer Condition into the frame. Then type “3” into the seconds field:
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:
...
As it is, if the voice-over audio starts playing and the user learner clicks the 'ok' “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' “OK” button is clicked, go to the next step.
Step 4 - Close the Timed Hint Frame
If the user learner clicks the 'ok' “OK” button, the timed hint isn't needed anymore. We can close the frame that contains the hint once we know the user 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' “OK” button is clicked.
A closed frame will never activate. It will also close the frame immediately. If the user learner clicks the 'ok' “OK” button while the voice-over hint is playing, the close frame will stop the audio from finishing.
...