BIRD In this Tutorial, you will learn how to code a special zigzag stitch to stitch die outline of the bird!

 

 

1. Code these Scripts in the object, where you want to use this stitch.

Good to know:

If you are up to do more than one tutorial card, make sure to create new variables “for this actor, object, or one of its clones only”, otherwise variables with the same name could lead to problems.

create variable

 

2. Now start and insert the bricks step by step into your script.

Bird Zigzag Code 1

 

direction - 90

For this stitch you are using mathematical formulas. Firstly to calculate the hypotenuse...

hypotenuse = adjacent side ÷ cosinus(𝛼)

... secondly to calculate the angle.

𝛼 = arctangent(opposite side ÷ adjacent side)

3. Now start and insert the bricks step by step into your script.

Bird Zigzag Code 2

 


6.png

 

8.png

 

4. Now start and insert the bricks step by step into your script.

Bird Zigzag Code 3

 


7.png

Attention:

There are many similar formulas in this tutorial, you should stick to the tutorial here. Maybe you missed something?

5. Check the bricks, if it still doesn’t work.

Here you get to the previous tutorial.Here you get to the next tutorial.