View Full Version : Countdown
Want to do a 10 seconds countdown
How to do it
thank you!!
You could use a timer function or a loop in a task function:
import viz
viz.go()
text = viz.addText('',viz.SCREEN)
text.setPosition(0.45,0.5)
counter = 10
def countDown():
global counter
text.message( str( counter ) )
counter -= 1
vizact.ontimer2(1,10,countDown)
If I want to stop reading the beginning of time
How can I stop? Clean?
Thank
Sorry, I'm not sure what you are asking. Can you explain a little more?
I would like to pause time halfway
Countdown at the beginning
thank you
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.