simply animation

Posted By: oldschoolj

simply animation - 08/07/07 03:45

anyone know how to play two animations if you press a button or move, one right after the first. The first animation will not loop. The second loops over and over. Only vertex animation though.

Thanks!
Posted By: JibbSmart

Re: simply animation - 08/07/07 04:25

i suppose you could have a BOOL (or var if you don't want to be too fancy ) called "beginning" or something. when no movement buttons are pressed, "beginning = 0". when you run, have an if statement which will run the first animation if "beginning == 0" and the second animation if "beginning != 0". within the if statement for the first animation, if you reach the end (or near the end) of the first animation, beginning = 1. then the next frame the model will continue with the second running animation.

i hope u know what i mean, i don't have time to sit down and code atm.

btw in this post i assume you're goal is for your character to have a smooth transition from not-running to running, or something similar.

julz
Posted By: oldschoolj

Re: simply animation - 08/07/07 05:53

well thats easy if you jsut want to interpolate from walk frames to run frames or any other animation to another one. But i don't want to do it automaticly. I have created animations for the transition, because of the complexity o fthe models. So essentially every movement animation is two animations, a one shot intro, and then the actually animation, or looping animation. I also need this problem solved for another reason. Sometimes animations need to change to another animation after a while. For instance if you stand still for 20 seconds, you should do another animation loop once, and then back to standing. I coulnd't find any information in the manual for direct frame manipulation for Lite-C, only animation blending through interpolation, and vertex to bones. It's odd that it isnt there, because it should be.
Posted By: JibbSmart

Re: simply animation - 08/07/07 07:04

i don't see how my idea doesn't solve your problem, sorry.

julz
© 2023 lite-C Forums