![]() |
|
#1
|
|||
|
|||
|
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)
Code:
def stopGo():
Wait 10 secs
viz.waittime(10)
text.message( 'STOP' )
#Wait 1 sec
viz.waittime(1)
text.message( 'GO' )
viz.director( stopGo )
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| split screen | honey006 | Vizard | 3 | 05-21-2009 10:57 AM |
| Remove the credits on the run screen | Saz | Vizard | 1 | 11-21-2008 10:01 AM |
| screen image | erchrastil | Vizard | 8 | 06-27-2008 12:45 PM |
| position of html-file on screen | active_world | Vizard | 1 | 05-16-2008 08:24 PM |
| accessing screen buffer | hotspur1 | Vizard | 3 | 08-22-2003 04:31 PM |