Direct Correlations between Variables and TImeline

Dec 05, 2022

Hi, everyone,

I'm not sure if this is possible without a little bit of javascript, and I've been all over trying to figure this out, but hopefully you wonderful heroes can help me!

What I'm trying to do is this:

Create a variable based on the timeline. What I would like to do is, every time a second passes on the timeline, the variable is updated to match that second. So at 15 seconds on the timeline, the variable should also be 15 seconds. I know how to do a countdown timer on a layer, but that doesn't work for what I'm trying to eventually do. I would like an eventual trigger to read:

Add value 20 to score2

When the user clicks Definition1Ball

If seconds (are less than or equal to) 15

and seconds (are greater than or equal to 0)

I would like to set up those triggers at 15 seconds apart for a total of 4 sets (60 seconds), so the second one would look like:

Add value 15 to score2

When the user clicks Definition1Ball

If seconds (are less than or equal to) 30

and seconds (are greater than or equal to) 16.

It may be really obvious how to accomplish this - if so, please put me out of my misery!!!

Thanks, everyone,

Kate

2 Replies