Loop through array values
-
How would I loop through array values and update text with each?
-
@TutorialDoctor the get array count behaviour (hidden under logic instead of with the other array behaviours) should let you loop through them pretty easily by getting array value with the index being the loop index:
-
What loop style or loop settings? When I output the array value to a text bubble it only shows the first item in the array.
-
@TutorialDoctor just a regular repeating loop with the array count as the number of times. The loop will run in a single tick, so it'll probably only show a single value if you use set label or text bubble.
-
Thank you. I sorta got the effect I wanted but I'd like to trigger each cycle by a touch event (trying to create a visual novel dialogue box).
Can't update a single label but it does update three different labels. Might as well not use the loop.
-
@TutorialDoctor yeah, loops are for going through the items as fast as possible. Try something like this for what you want: