Hi guys, in the game I'm building I need to know the total play time of all my attacks.
I usually just look up the time the animation editor gives me at the last frame of an animation.
But recently I found that if I increase the frame in between time while making the animations in blender and speed them up when calling play custom anim using the Playrate parameter the animations look way smoother and are a big improvement compared to having to shorten the inbetween frames in blender to get them to play faster.
I know that blender is making animations 30fps.
So if I speed up the frame rate of a 15 frame animations that plays for 0.5 seconds to 1.5 of a frame per frame. How long will the animations have played for?
I know this should be simple math for a programmer, but I'm a bit dislexic and I'm having a real hard time figuring out the conversion.
float PlayRate = 1.5f;
FireInterval[0] = 0.5f;
// my fire interval matches the animations normal lifetime, when the playrate is 1.0f;
//so right now the animation will finished before the fireinterval since the playrate is 1.5
// I'm having a hardtime figuring out the time conversion
GamePawn(Owner).AttackAnim.PlayCustomAnim('Gamepla yModel_LAttack1', PlayRate , 0.0f,0.0f);
I usually just look up the time the animation editor gives me at the last frame of an animation.
But recently I found that if I increase the frame in between time while making the animations in blender and speed them up when calling play custom anim using the Playrate parameter the animations look way smoother and are a big improvement compared to having to shorten the inbetween frames in blender to get them to play faster.
I know that blender is making animations 30fps.
So if I speed up the frame rate of a 15 frame animations that plays for 0.5 seconds to 1.5 of a frame per frame. How long will the animations have played for?
I know this should be simple math for a programmer, but I'm a bit dislexic and I'm having a real hard time figuring out the conversion.
float PlayRate = 1.5f;
FireInterval[0] = 0.5f;
// my fire interval matches the animations normal lifetime, when the playrate is 1.0f;
//so right now the animation will finished before the fireinterval since the playrate is 1.5
// I'm having a hardtime figuring out the time conversion
GamePawn(Owner).AttackAnim.PlayCustomAnim('Gamepla yModel_LAttack1', PlayRate , 0.0f,0.0f);
Comment