i am now making a game that about escape room. And now, i wanna make a number clock that can count time in the game. Anyone know how to make it?
- Create a variable called “clock” and set it to the number of seconds required
- Add a repeat x times loop block with the clock variable value as the x parameter.
- Inside the loop block, put wait 1 second and change variable by block (1 or -1 depending on whether you want to increase or decrease)
- Set the text of your text object (your timer) to the value of your clock variable
Hope that helps! Let me know if you have any further questions about this. If this solves your problem, please mark this post as the Solution.
Geoff @ TechLeap
hi there im just want to have a timer in my game that makes it to when the timer is up it ends the cospace and your restart but it also shows on your screen when you play
you just need to add an “If”.
If clock variable is equal or less than zero, restartthe game.
I want to change te ‘0’ in ‘klok’ , just like on the image above from DaniYubero. B
ut when I drag the klok-block in this space, it changes to
Can you explain me how to do this?
Just view this video, if you habe further problems answer tagging me please
Yes, that’s it! Thank you!