Fire animation
by Jonathan Lessard · in Torque Game Engine · 05/22/2003 (9:25 am) · 3 replies
Hello,
I've made an animation sequence for the fire state and I know it works since I've tested in as a jump sequence. Yet, when I set it as the fire sequence, I see only a few frames of movement when firing. If I set the StateTimeOutValue of the Rifle to 10, I still get 2-3 frames of animation and then the player stops moving until the delay is over and then it can shoot again.
Anyone understands the problem?
Thank you,
Jonathan Lessard
I've made an animation sequence for the fire state and I know it works since I've tested in as a jump sequence. Yet, when I set it as the fire sequence, I see only a few frames of movement when firing. If I set the StateTimeOutValue of the Rifle to 10, I still get 2-3 frames of animation and then the player stops moving until the delay is over and then it can shoot again.
Anyone understands the problem?
Thank you,
Jonathan Lessard
About the author
#2
I was also suggested to use the recoil state to make the player move while firing and it works.
The only thing is, the sequence is played a bit strangely even when not moving as if it was blending with some other movement I don't know about. the result is that the hands don't move as much as they should and stay pretty close to the player's body.
Anybody knows what's coming in the way of my animation?
thanks,
Jonathan
05/27/2003 (12:10 pm)
Ok, I've been explained that the "fire" state in the weapon scripts did not refer to a player animatin but to a weapon animation. Which explains why it didn't work.I was also suggested to use the recoil state to make the player move while firing and it works.
The only thing is, the sequence is played a bit strangely even when not moving as if it was blending with some other movement I don't know about. the result is that the hands don't move as much as they should and stay pretty close to the player's body.
Anybody knows what's coming in the way of my animation?
thanks,
Jonathan
#3
it would be nice if somebody would make a short tutorial for adding an arbitrary player animation to the game.
thanks
-Andrew Harp
07/13/2003 (6:30 am)
I too would like to know how to play fire animations. In my case I'm trying to animate a sword (after integrating the melee combat tutorial into torque). I made a sword, and gave the player a swing animation... I tried using the playthread script function, but obviously there is more to it than that. the player will swing the sword only once, or not at all, depending on if I put the stopthread animation in. is recoil (for a melee weapon??) the way to go? it would be nice if somebody would make a short tutorial for adding an arbitrary player animation to the game.
thanks
-Andrew Harp
Torque Owner Jonathan Lessard
I've looked at the RW example and it doesn't even have a fire animation. The player just sort of twitches when you fire your weapon.
Jonathan