THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/10/2011 at 16:25, xxxxxxxx wrote:
I'm very new to Python on C4D, but I'm sure what I'm trying to do is possible with Python.
Basically, I have a sprite that is composed of three objects - an animation of an 8bit character walking.
I have the code working in an XPresso node so far that I'm able to switch the character's state based on User Data, but I would really like to trigger the walk cycle depending on how much the character has moved on X. Something like if last position has changed on x by five, switch to next state and so on.
I know that will have to do with Vectors and Time, but I'm a little lost as to where to start.
Thanks in Advance,