Forum Discussion
How can I set a button that stops my timer when I click on it ?
Can someone help me figure out how to stop my timer ( and finish the level )if I click on a button. I need then to link this button with the stars you can see below in a way that the player will get 1 star ( in orange ) if he manages to finish the game from 0 to 3 min or below / 2 stars : from 4 to 7 / 3 stars X > 7.
I have a attached below the picture and the file. Thank you so much,
- WaltHamiltonSuper Hero
I Added a couple of triggers to the Master layout, and changed the one on the cartographie slide that sets the state of the stars.
Just for fun, I changed the Master layout of the Untitled slide so the timer can be restarted.
- MyriamLebbak813Community Member
Thank you so much, it works perfectly !
I noticed that my timer stops when I open one my layers, how can I make sure it doesn't freeze when I do that? I've tried to change the layers propreties by unchecking the box "Hide other layers", the timer seems to work but now everytime i move my mouse the layer disappears.
Hello Myriam,
You can uncheck the 'Pause timeline of base layer' option show here to prevent the time from stopping when a layer is opened.
You can learn more about slide layer properties by checking out this article.
Hope this helps!
Hello Myriam,
I took a closer look at your project file and saw that you have the following triggers in the timer layer:
This means that for the slide to toggle the visibility of this layer without affecting the other layers, you'll have to turn off this option in the Slide Master:
Turning this option off for the timer layer allows the timer to continuously function without affecting other layers present in the slide.
You'll also want to make sure that the 'Hide other slide layers' option is left unchecked in your layers to allow the timer layer to display properly.
I've attached a demo file so you can see how the changes that I mentioned affect the behavior of your slides.
Let me know if you have any questions!