How would I go about pausing an animation? I want the user to click a door so that the door opens then pause the animation so that it doesn’t randomly shut on the player when he is trying to enter. I want him to close it back.
I would like to know the proper way as well.
What I have now is an anim montage where I manually put a section that repeats infinitely at the end of the sequence.
You can open a door very simply by using Blueprints, or using Matinee and Blueprints. Unless you’re doing something much more complicated with the door’s motion, there’s no reason to use animation.
There’s a great Blueprint door setup in the Content Examples project, and a short description of it here:
For another look at opening doors, this tutorial features an automatic sliding door but could be converted to a swinging door with a little Blueprint work:
Another very easy way to set it up is using Matinee. Create a Matinee that opens the door. Then create a Trigger Volume around the door. In the Level Blueprint, set up something like this:
You also have a Pause node for Matinee if you need it, but something like this would make it unnecessary.
For animations, there is a Pause node you can use in the AnimGraph. Again, this isn’t an ideal way to deal with simple movements like a swinging door.
Hope this helps!
i want to ask How to stop a animation by using blueprint , when a animal walk attack ,then it be freeze ,it should keep the pose which when it freezing not by C++ ??
did you ever figure this out?
actually you can set a parmater called “play rate” in animation blueprint
I use the “Global Anim Rate Scale” node to freeze my animation in place. But one thing is unclear to me is the name “global”, because that node only freezes one character in the level.