0% found this document useful (0 votes)
32 views1 page

Polygon Drawer On Scratch

This document contains Scratch code blocks for drawing a polygon shape. The code sets variables like length, perimeter, and sides to 0 to initialize the polygon. It then sets the x and y position and rotation style and asks the sprite to move or turn if a key is pressed. It uses loops and conditions to incrementally change the shape's properties and draw the polygon.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

Polygon Drawer On Scratch

This document contains Scratch code blocks for drawing a polygon shape. The code sets variables like length, perimeter, and sides to 0 to initialize the polygon. It then sets the x and y position and rotation style and asks the sprite to move or turn if a key is pressed. It uses loops and conditions to incrementally change the shape's properties and draw the polygon.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

point 

towards mouse-pointer
File Edit Tutorials Polygon Drawer Share See Project Page fefebabs

10
Codechange x byCostumes Sounds

set length to 0
set x to -218
Motion
set perimeter to 0
change y by 10
set sides to 0 go to x:
Looks

point in direction
set y to -157
Sound
ask

Events if on edge, bounce if

set
Control
set rotation style left-right when space key pressed else

repeat until
Sensing erase all

x position say
Operators
y position wait Stage
Sprite Ball x -218 y -157

Variables direction ask


Size 100 Direction 90

My Blocks Looks
Backdrops
ask
1
say Hello! for 2 seconds
Pen
set Ball

say Hello!

think Hmm... for 2 seconds repeat

move
think Hmm...
Backpack

You might also like