Using Level Blueprint in the game
With all the basics out of the way, we can begin scripting our game. One thing you should know is that we might add more triggers and actors as we go along.
Key cube pickup and placement
The first thing that we are going to script is the player picking up the key cube. Now, when the player is close enough to the key cube and taps on it on their screen, they will be able to pick up the cube. In our case, to give the illusion that the player has picked up the key, we are going to destroy the actor when the player taps on it on the screen. Also, we will place a replica of the key cube on top of the pedestal at the very beginning and keep it hidden at the start of the game. When the player has picked up the cube and ...
Get Unreal Engine: Game Development from A to Z now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.