In programming, we are using blueprint in UE4, and we have been learning arrays. We made a light array that would turn a light on in a row of 12 and each would sequentially turn on as the last one turned off. We also added the option to have more than one on at the same time.
For convenience, I set the delay between each light activating to a public variable so i could change it on a per blueprint basis. I also went above the criteria of the assignment and implemented a public set of variables to change the RGB values of the lights. For fun and a little bit of randomness, I added a boolean onto the "set Light color" node that when it is true (When I tick the box labeled "Random?") in the blueprint details panel) it will make each light in the sequence a random float within the range of 0 to 1, which is the color range in Unreal 4.
After soem experiementing, I managed to figure out how I could change the offset of the lights in the details panel and with a few copies of my array blueprint, made a sweet arrow, which becomes even cooler when its color is set to random.
here is my array below.
No comments:
Post a Comment