View Single Post
  #1  
Old 06-15-2009, 06:00 AM
Saz Saz is offline
Member
 
Join Date: Nov 2008
Posts: 36
Timed changing message on screen

Hi,

I'm trying to get a 'stop' message appear on the screen 10 seconds into the program, which waits for a second and then changes to 'go'. I've had various attempts and whilst I can get the intial message up (whether it starts off as go or appears at 10s in as stop), it won't change over to the other message.

This is one example of code used:

Code:
#Stop and go message
text_go=vizinfo.add('GO')
text_go.translate(.5, .9)
text_go.fontSize (35)

def stopSign():

	text_go.message('STOP')
	viz.waittime (1)
	text_go.message ('GO')
vizact.ontimer (10,stopSign)
and this is another:

Code:
def stopGo():
    Wait 10 secs
    viz.waittime(10)
    text.message( 'STOP' )
    #Wait 1 sec
    viz.waittime(1)
    text.message( 'GO' )
viz.director( stopGo )
which also fails to work, any ideas on what I'm doing wrong?
Reply With Quote