Turning on Random Elevators with Dynamic References in UE4 | Devlog #13 - GameDev
Devlog #13 - Building Elevators using Dynamic Referencing for Arrays and Randomized Sequences
This video documents what I learned in Unreal Engine 4 about making elevators which turn on at random when a switch is pressed. So it could be anyone's guess as to which one starts moving first! To achieve this, dynamic references (variables accessed at runtime) were used in the switch blueprints.
So once a switch is pressed, an array housing all the elevator references will be checked until an inactive one is found. The switch will turn this elevator on. And since the list of elevators in the array is shuffled prior to checking, the sequence is randomized, meaning any elevator could turn on first.
I also learned how to use projectiles to activate switches and fix the issue where the projectiles deflect off the trigger volume or box collision object. Using what I learned in this video, I'll be making a small and simple platformer that challenges players to get across the landscape!
My videos are inspired by the Youtubers such as Dani, Make Games with Katie, Code Bullet, and Sebastian Lague. If you don't know who they are, I highly recommend checking them out!
Timestamps:
0:00 - Elevator Object
1:04 - Elevator Blueprint
2:10 - Switch Object
2:44 - Switch Blueprint
3:47 - Arrays and For Loops
4:56 - Using Projectiles
5:32 - Random Shuffle
6:22 - Next Game - Platformer
First Puzzle Game:
https://www.mediafire.com/file/d2g5rvj9yrms7yo/FirstPuzzle.zip/file
UE4 TUTORIALS BY KATIE:
https://www.youtube.com/channel/UCqI-7BueefkQwfbOi8ZzMOw
Other Videos By Rushcode
Other Statistics
Unreal Statistics For Rushcode
Currently, Rushcode has 27,663 views for Unreal across 27 videos. The game makes up 3 hours of published video on his channel, roughly 43.00% of Unreal content that Rushcode has uploaded to YouTube.