Saz
06-15-2009, 06:00 AM
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:
#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:
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?
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:
#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:
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?