Indie Dev – Doors & Keys

After making a functional player, I next learnt how to make some basic game parts. Whilst I never got round to giving them any kind of models, I was happy with how simplistic the Blueprint coding was for both. The door opens whenever the player gets near, however if the player has not picked up the necessary key, the door will not open, so once the player has picked up the key and walks to the door it will open, but only from one direction.

I made it work like that because in many side scrolling games, when opening a door you progress to a new level, meaning if the door closes you could stop loading the used part of the game, maybe to assist in optimisation?

Leave a comment