FOR loop

TheZxline 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 2

Please tell me how to make a delay in the FOR cycle, in 3 seconds.

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

If you're in 1.3, not possible with just a for loop and wait, because it's synchronous. You'd need a combo of maybe a state machine and wait unit. The answer is floating around,. In 1.4 this all changed, and is how you most likely want to do it moving forward. you directly connect a wait for seconds to the body, by making the event that starts the flow async, by clicking The bool toggle in the graph inspector. Not around my computer to give you a picture, but works just like that. 

Event(Async) ---> FOR LOOP - Body ---> Wait For Seconds (3 seconds).


Indeed, this will be made possible with v.1.4, which is currently in Alpha.