Home › Forums › General Questions › Problem with video button
Hi all, i’m facing an issue that i’m not able to solution.
I have a screen with a button, that when it’s pressed launches a video and when the video is finished (using “after X seconds do” puzzle) replace the screen with and image.
Until here everything works as it is supposed to.
But what if i want to press again the video button and start the video again? The “after X seconds do” screws the video playing again…
How do i reset that time to 0 again, so video plays again properly?
Thanks in advanced,
Create a toggling flag
in your startup script add
set myvideo_variable_flag = 0
Then in your onclick add a conditional statement
— start my video
— set myvideo_variable_flag=1
— AFter x seconds
— replace texture
— set myvideo_variable_flag=0
Route 66 Digital
Test your math:
Log in / Register