Having fun with loops

3D Animation Language for Kids

Having fun with loops

Looping is a great way to repeat a series of actions without writing the same commands the same again and again.
Let’s say we have a Ninja model:

Ninja is a model
David is a Ninja

And we want it to rotate 45 degrees and then do some back-flipping and Side-kicking

David.rotate(y+45) in 0.3 seconds
David.Backflip then SideKick

Now, we want it to happen 10 times – so we just add the Loop-End loop statement surrounding the action code:

Do 10 times
David.rotate(y+45) in 0.3 seconds
David.Backflip then SideKick
End do

That’s it. looping is a great scripting tool and quite simple to use.
Have fun 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *