View Single Post
  #4  
Old 06-24-2009, 10:56 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You need to declare the MOVE_SPEED variable as global in your MOVE_SPEEDCH function.
Code:
def MOVE_SPEEDCH():
	global MOVE_SPEED
	MOVE_SPEED=0
vizact.ontimer(22,MOVE_SPEEDCH)
The Python Tips page in the docs explains when you need to use the global keyword.
Reply With Quote