From Test-Scratch-Wiki

Document.png Please expand this article or section. You can help by adding more information if you are an editor. More information might be found in a section of the talk page.


Terrain Generators are a popular type of project on Scratch. They are often created using stamping and pen techniques. They are often tagged under games, simulations and art, and are relatively easy to create by a Scratcher of any level of ability.

Scripts

An example script looks like this:

when gf clicked
 go to x:(-230) y:(175) //starting point for the stamping sprite, depending on the size of each panel, or costume; this may change, but using -240 and 180 would cut off part of the panel
forever
 repeat until <(y position) = [-175]>
  repeat until <(x position) = [230]>
   stamp //puts the panel there
   change x by (10) //moves the panel over
  end
  change y by (-10) //has the stamping sprite go down one panel
  set x to (-230) //go back to left side of page
 end
end

One can also use the next costume block to get different looks of the panels. To recive a different terrain every time, one can use a variable or the pick random block.

See Also

External Links

Cookies help us deliver our services. By using our services, you agree to our use of cookies.