How do I make a door open quickly but close slowly?
Hello! I am very very very new to Unreal Engine. I am working on a simple game in which one of the challenges is a race against time. The player walks through a trigger volume which triggers a set of obstacles (which I've already coded in C++) and opens a door which slowly close. I have this blueprint here:
So what this is does is that it opens a door in 10.5 seconds and closes it in 10.5 seconds. What I want it to do is open the door instantly but close it 10.5 seconds. I tried making another timeline and rotator but that didn't help. The process should be repeatable meaning that if the player fails he can always try another time. I would really appreciate if someone could guide me through step by step on how to do this. Thanks in advance! :)
asked Aug 25 '17 at 04:24 PM in Blueprint Scripting
Hmmmm, I would have probably used a lerp (0-1), and done a lerpRot. Then I would have probably had a multiplier in between the timeline and the lerp rotation alpha... the Multiplier would default to something like let's say 1 (so you can use the 10.5 in timeline), and the alpha would be the same... for the reverse. But for Play... right after the OnOpen event, set the multiplier to something silly like 10 or something, and clamp it to 1 (since it's a 0-1 lerp). Right after the OnClose, set it back to 1.
I mean, truthfully, you're using timeline in a "wrong way" so it's just hacking together some solution that would work for you.
answered Aug 25 '17 at 05:00 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here