Thread: Countdown
View Single Post
  #2  
Old 07-22-2010, 02:56 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could use a timer function or a loop in a task function:
Code:
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)
Reply With Quote