This right here is a small bunch of code that I made in 5 minutes to try and power an ‘advertisement board’ on my Main Menu UI with the use of a Common Animated Switcher. (A widget switcher that has animation transition functionality that’s available with the Common UI plugin.) It changes ‘advert’ every 5 seconds by adding 1 onto the Active Widget Index variable then resetting to 0 when the number is 3, the last widget.
For some reason this code gets stuck at integer 2. It goes from integer 0 to 1 to 2, then just repeats 2.
I did a logical visual review of the code, backtracking the decision making of the programme and it looks like it makes perfect sense. Why is this happening?
You may be able to adapt this to your delay node if you so wished and not use the Timeline, theres also other ways of making timers that are better than this… but if you ever plan to animate it or something this timeline method could come in handy
Change Ad