playMaker

Author Topic: Problem with animation stop  (Read 1627 times)

Franck

  • Junior Playmaker
  • **
  • Posts: 91
Problem with animation stop
« on: October 03, 2018, 06:33:08 AM »
Hi there,

I have a problem when I stop an animation in progress.
For example, I have an empty gun, when I aim everything is OK, but when I want to reload it and I stop the animation in progress by changing weapon and I come back on it, the position of my gun is not like in the beginning. It kept the position when the animation was stopped.

Here is a video that shows the problem.
Thank you in advance for your help.


GonerGames

  • Junior Playmaker
  • **
  • Posts: 53
Re: Problem with animation stop
« Reply #1 on: October 03, 2018, 09:58:10 AM »
It's looks like your rotation on the gun is not getting either set or reset properly when you switch back.
Maybe put a FSM on the gun that sets the rotation on start back to default value.

Franck

  • Junior Playmaker
  • **
  • Posts: 91
Re: Problem with animation stop
« Reply #2 on: October 04, 2018, 04:41:30 AM »
Hi GonerGame,

any idea how to do it? To set the rotation back to default values?

Thx

GonerGames

  • Junior Playmaker
  • **
  • Posts: 53
Re: Problem with animation stop
« Reply #3 on: October 04, 2018, 07:46:12 AM »
When you start your scene click on your gun and see what the rotation values are before you switch weapons.

Stop the game and add an FSM to your gun with a Set Rotation Action. Put the values in the x, y and z you recorded from above.
I'm am guessing that when you switch weapons you deactivate your original gun object and then reactivate it when switching back. If that is the case then the FSM will fire again and correct your rotation.

Hope this helps
 



Franck

  • Junior Playmaker
  • **
  • Posts: 91
Re: Problem with animation stop
« Reply #4 on: October 05, 2018, 08:51:18 AM »
I tried to put an FSM on the gun with SET ROTATION, but nothing happens.
When I cut the animation, the rotation remains saved and does not take its original position that I put in SET ROTATION :(
very weird behavior...

Franck

  • Junior Playmaker
  • **
  • Posts: 91
Re: Problem with animation stop
« Reply #5 on: October 05, 2018, 10:09:51 AM »
I changed my animation by removing the rotations. Now it works.
In fact, I realized that I must have in my animations the same objects everywhere. For example, for the hip_idle animation I must to have all my objects as in the reload animation for it to work.
If I have an object missing in one of the animations that's where it bug.