View Single Post
  #7  
Old 08-06-2014, 02:05 PM
kerscha kerscha is offline
Member
 
Join Date: Sep 2013
Posts: 9
I was able to reverse the walk in a simplistic way and it looks ok. Not great, but it will suffice for what we are doing. Thanks for your help, it might come in handy later on. For future reference, here's the code I came up with:

walkTime = 1.1853300333

def walkBackwards():
global walkTime
avatar.setAnimationTime(0,walkTime)
walkTime-=0.01 #change for speed
if walkTime <= 0:
walkTime = 1.1853300333
vizact.ontimer2(0.01,viz.FOREVER,walkBackwards)
Reply With Quote