Looping in CoBlocks

Hi all,

I would like some advice on creating a CoBlocks script.

The logic is:

Starts a lever, starts rotating an object.

When clicking another object the direction of rotation changes.

And this loop should continue while the lever is on.

When clicking the lever again the scene restarts.

Thanks.

Hey @techleapnz can you help me? :smiling_face_with_three_hearts:

Have a look at How to create the coding of closing and opening a door on repeat? - #2 by Nikolay for clues on how you might achieve what you’re wanting :blush:

1 Like