Skip to main content

Execution

Response_Loop.png Loop



Ceiling Node.png

The Loop node enables the user to repeatedly execute a connected response for a specified number of times as defined in the Number of Loops field. Each time the event connected to the loop is triggered, the response is executed repeatedly, and the loop continues until the assigned number of repetitions is completed.



Example

image.pngimage.png

In this example, a Loop noderesponse is used to obtainrepeatedly execute the X,connected Y,response andthat Zdecreases coordinatesthe value of ana objectnumber variable by one. The Decrement response is repeated for the number of times specified in the Number of Loops field, with the duration between each repetition set in the Interval field. Once the assigned number of repetitions is completed, the sound named TableCountdown_Over once the user triggers the object named Activate. The coordinates are then stored in variables named X, Y, and Z, which can be connected to a variable writer to be displayed during the VR experience.plays.