Studiocode Tutorials | 3.21 Code Window - Reactivate Lag Time
Transcript
In this tutorial we will cover the reactivate lag time feature.
I open my inspector by double clicking on the code button. You can see this feature directly below the lag time option with 5 seconds of lead time and three seconds of lag time. Clicking once on this button will give us an instance that is 8 seconds long.
First, I'll code an instance with reactivate lag time enabled as it already is so I'll close my inspector and go into code mode and activate the code button. Before the lag time is up if I click the code button again you will see the code button start to fill up again.
When a lag time is up the instance that we have created is now longer than the eight seconds that it would have been if we had just activated the missed shot button a single time to start time for the instance is to start time five seconds before the first click while the end time is three seconds after our second click so if I go back into edit mode and open the inspector again I will uncheck the reactive a lag time feature.
When coding with reactivate lag time unchecked if I click a code button a second time before the lag time is completed, two separate instances will be created. I'll go ahead and close my inspector again and go into code mode and click on the missed shot button then again before the lag time is completed I'll click on the button a second time.
You see immediately that there is a new instance in the timeline when the lag time is completed from the second click. The second instance is also in the timeline. Now the two instances are of the same length of time.