Indie Game: Sliding Door

This slideshow requires JavaScript.

With researching into how I could create a sliding door animation I now have a rough idea of how I could implement the animation into my door mechanic. With creating the sliding door, I simply duplicated my original door blueprint just so that I have a backup reference. Just in case I need to refer back to it or it goes wrong. To make the animation work in my blueprint I simply replace the rotation mechanic of the hinge with a timeline which is my sliding door animation. With the timeline I simply added a vector which affects the direction of where the door goes which I want it to slide on the horizontal Y axis. With this it was simple as I added two points begin and end lasting 1 second. I then added a “set relative location” which gets the location of the door. Which I then tested it to make sure it works which it did in a way as I forgot to remove the hinge and a rotation at the end of the blueprint that checks for the key. So, what would happen it would open on the hinge and then the door would slide in its direction. Which looked absolutely funny, to solve this I simply removed both the rotation and the hinge.

With this solved I then focused on closing the door by itself. With this I just connected the end overlap to the timelines reverse. This solves the issue of it closing by itself. However, I have a couple of issues with the sliding door which one of them is that there is a bit of a delay with the door opening. I think that this is due to checking for the key on the player. Or that I might have it a bit delayed with the animation. I did try some ways to solve this from playing around with the layout of the blueprint which from many tries I had no luck as the door wouldn’t work. The other problem is that when walking up to the door it slightly moves over a bit which again I played around with the layout of the blueprint and again it wouldn’t work. I even played around with the timeline inputs and outputs to see if this solves the issue. This didn’t solve the issue, but I do now have a working sliding door that closes by itself. So, to improve from this I need to solve a couple of small problems with it from the delay and moving a bit at the beginning but overall this turned out better than expected as I imagined that there would be a tone of problems with it not working.

Leave a comment