Escape room devlog 8: Second puzzle

I First modelled the door, card and card reader.

Then I textured them and exported them for use in unreal

I also took A screeen shot of the card and created a widget for when you pick it up.

On the coding side: The picking up code I simply added a extra class a variable onto the existing linetrace branch filter I had and I slightly tweaked the left click code to detect the reader component the send a message to it to start the animation.

The hallway and card reader are part of the same blueprint, but the door and card are spawned by the main card reader bp.

When the reader bp recieves the animation message it spawns a card and sets it to above the reader.
It then swipes the card downwards and turns the light on the reader green.
Then it messages the door it spawned to open.

The door then plays the open animation of the centre rotating then the sides sliding open.

I coded It with the ability to play in reverse as the door blueprint is seperate from the Reader blueprint and will be used in other areas around the map.

With the card being spawned by the reader in a location on the map, you have to find it to be able to enter the main room to escape, which is the puzzle.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *