Hello. I want to make make a sliding door open and close with some delays, to be broken more exactly, just like here: Imgur: The magic of the Internet
I watched some tutorials about how to animate doors using blueprints, but all of them are when the player is approaching the door, and I don’t want it to be like that. When I press Play, whenever I control the player, or just simulate or something else, I want that door to open and close itself, loop itself, just like in the link. I know I have to do it with blueprints, but I don’t know how:(
Hey there @RaMb0RO1! Welcome to the community! So you can do this with Sequences if it’s a purely scripted visual, or if you want to do it by blueprint like you noted, I brought a quick little example using Timelines! So there’s actually 2 examples here. One where you control the lerp yourself outside of the timeline in case you want to move where the baseline is during BP, or alternatively the second “hardcoded” version which you will instead just lock the timelines in with 2 tracks with the exact numbers they will move. This way is less malleable, but if this is just a visual you may not need more control so it’s no big deal.
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
The red is where you can control the lerp, red has 1 timeline which is just a 0 to 1 value in 2 seconds.
Blue is hardcoded exact numbers in the Timeline tracks so you get 2 tracks. For this example they are 50 to 100 in 2 seconds and -50 to -100 in 2 seconds. This won’t be editable during gameplay. Please let me know if you have any questions.
Hello. Sorry I respond now:(
I don’t have any questions for now, I will try to do what you told me and if I have some questions, I will ask.
Thank you very much for helping:)