View Single Post
  #7  
Old 04-21-2009, 09:39 AM
Moh200jo Moh200jo is offline
Member
 
Join Date: Feb 2009
Posts: 99
I correct something like this:
HTML Code:
avatar_position = avatar.getPosition()
def avatarstate():
	global avatar_position
	if avatar_position == avatar.getPosition():
		avatar.state(1)
	else:
		avatar_position= avatar.getPosition()
		avatar.state(2)
		
vizact.ontimer(.05, avatarstate)
I hope this will be helpful
Reply With Quote