Buttons and videos

Mar 28, 2021

Can you do the following: Video plays of a child eating a cookie > child drops the cookie on the ground > user clicks a button within 2 seconds to signal that they've observed it occur. Video continues to play throughout. At the end of the clip, the number of clicks are totaled together. Thoughts?

2 Replies
Ned Whiteley

Hi Adam,

In the attached example I have placed a video on the base layer, added a second layer with the button and created a variable (ButtonClicks) which increments each time the button is clicked.

Just to show that the variable is being updated every time the button is pressed, I have also added a text message to the button layer.

If you view your video and note the time, for example, when the child drops the cookie, you should be able to create a variable that checks that the button is clicked within 2 seconds of the cookie being dropped.

This should give you enough information to create what you are after, but if you have any further queries, just get back to me here.