Hey everyone,
I’m fairly new to Unreal Engine, so please excuse any beginner mistakes. I’m working on a simple Simon-style game where the player needs to repeat a sequence of glowing lights.
The issue I’m facing is with the random sequence generation. I’m using a for
loop to randomly select and light up one of the available lights, storing each selected light’s index in an array. While the lights do seem to flash correctly during the sequence, the resulting array doesn’t match what I actually observed. Something seems off, but it’s a bit tricky to describe in detail.
I’ve attached the project—it’s quite small and organized. I believe someone with more experience might be able to spot the issue quickly.
Thanks a lot in advance for your time and help!
Best regards,
Philipp
Repeater.zip (5.2 MB)
edit: I found the solution. The random integer has to be set to a variable first, as it changes when it’s fed to different outputs.