Implementing a Snake Game like point light sequence

I’m currently working on a project where I need to create a “snake game”-like effect using lights in Unreal Engine. The idea is to have a sequence of 3 lights moving continuously around a circle of 10 lights. Once the sequence reaches the end, it should wrap around to the beginning and continue.

Here’s a brief description of what I’m aiming to achieve:

  • Initially, the first 3 lights are on while the others are off.
  • In the next step, the sequence moves by one light, turning on the 2nd, 3rd, and 4th lights, and turning off the rest.
  • This continues such that each step moves the “snake” of 3 lights forward by one position.
  • When the sequence reaches the end of the array, it should wrap around to the beginning (e.g., if the last lights are 8, 9, and 10, the next set should be 9, 10, and 1).

I’ve attempted to set this up using a Timeline and some Blueprint logic, but I haven’t been able to get the wrapping around and continuous movement quite right. Could anyone provide a detailed Blueprint setup or guide on how to achieve this effect (With the screenshot of the whole blueprint setup)?

Any help or guidance would be greatly appreciated!