Is there a way to create a countdown in the same layer?

Oriol Gil shared this question 3 years ago
Answered

We're trying to create a countdown in the same layer,


Background:


You challenge a different user and when the other user accepts there's a layer saying:


3


2


1


and then the competition starts. But whe don't know how to create the countdown staying in the same layer.


Thanks!

Comments (1)

photo
1

Hi Oriol,


-Create a label with '3'.


-Create an 'on click' event on the button and choose 'Pause' and choose the time you want to wait.


- Next to this action, click on the gear icon next to 'Do', and choose Add action - Set value, choose the same label where the 3 is and set a fixed value '2'.


- Copy the interaction but now setting a '1' as the set value output on the label.


Best,


Lidia