WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-22-2010, 11:44 AM
CRI CRI is offline
Member
 
Join Date: Mar 2010
Posts: 26
Countdown

Want to do a 10 seconds countdown

How to do it

thank you!!
Reply With Quote
  #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
  #3  
Old 07-25-2010, 07:53 AM
CRI CRI is offline
Member
 
Join Date: Mar 2010
Posts: 26
If I want to stop reading the beginning of time

How can I stop? Clean?

Thank
Reply With Quote
  #4  
Old 07-26-2010, 06:28 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Sorry, I'm not sure what you are asking. Can you explain a little more?
Reply With Quote
  #5  
Old 07-28-2010, 09:45 AM
CRI CRI is offline
Member
 
Join Date: Mar 2010
Posts: 26
I would like to pause time halfway

Countdown at the beginning

thank you
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:38 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC