In this video we are going to explain how to make a terrain generator
First we have to make a sprite with 3 costumes then make our custom block and make a variable named height.
Firstly we will erase all by pen.Then repeat 30 times and set height to 2. In 30 times we will switch costume to anyone we want.In that repeat we will repeat height and stamp and change y by 16 then end this repeat(only height repeat not 30 ones).Now in that 30 ones repeat we take another repeat of 2 and change costume and stamp and change y by 16. now end this repeat. Not the 30 one repeat. now we switch to another costume and stamp and this time we change x by 16 and then we will set y to -172(or anything we had set).
now we make a block that when click,start my own block.
![](https://s2.save4k.ru/pic/yEsi26NOumY/maxresdefault.jpg)