As a training, I made a traffic light sequence blueprint yesterday.
It has Eastern European sequence, so it has 6 cases.
- 0 - yellow blinking
- 1 - red
- 2 - red yellow
- 3 - green
- 4 - green blinking
- 5 - yellow
It changes the case according to an integer timer, something like: “if 1000 > timer >= 1500 then case = 2”.
Every light has a boolean which is changed by the current case.
Also there’s a boolean “isWorking” which switches between case 0 and the other cases.
The sequence works perfectly but I guess the blueprint is a little too much big, which could result into annoying complications in a future.
Please, do you have any tips and suggestions how to simplify the blueprint? I’m not used to the UE4 programming yet and I don’t know, what everything it can offer.