Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Drawing a shape by coordinates
- de-a-th
-
4 posts
Drawing a shape by coordinates
im making a math game and i want to be able to enter the coordinates of a shape (up to 5 sides) into the game and then the game draw it, but i dont know how, i also need to be able to rotate, reflect and enlarge the shape, any help?
- GameNoob
-
19 posts
Drawing a shape by coordinates
Make sure to have all your coordinates saved in variables.
Now when you make the shape, run this script:
And you can change the script depending on how many sides you want.
Now when you make the shape, run this script:
And you can change the script depending on how many sides you want.
- scubajerry
-
1000+ posts
Drawing a shape by coordinates
Is this a school project? Do you know trig?
Make 2 lists X Y
Put all the points X and Y values in the lists
clear
go to first entry in list
start drawing
Make 2 lists X Y
Put all the points X and Y values in the lists
clear
go to first entry in list
start drawing
- de-a-th
-
4 posts
Drawing a shape by coordinates
Is this a school project? Do you know trig?
Make 2 lists X Y
Put all the points X and Y values in the lists
clear
go to first entry in list
start drawing
it is, a very challanging one too since i know nothing about scratch, and i know basic trig
- scubajerry
-
1000+ posts
Drawing a shape by coordinates
After you create your lists ( X and Y).
- ProdigyZeta7
-
1000+ posts
Drawing a shape by coordinates
Well, you don't have to put it in lists, scubajerry. An easier, and generalized way to draw regular polygons is this:
See the wikipedia page.
Last edited by ProdigyZeta7 (March 23, 2014 00:52:17)
- de-a-th
-
4 posts
Drawing a shape by coordinates
thank you for all the help but i really dont understand any of it :s
- scratch_123450
-
2 posts
Drawing a shape by coordinates
Hello all, could you please tell me where can i found a example about how to draw a shape: square, triangle or other by coordinates? thank you!
- Paddle2See
-
1000+ posts
Drawing a shape by coordinates
Use any sprite you want and put this script on it Hello all, could you please tell me where can i found a example about how to draw a shape: square, triangle or other by coordinates? thank you!
It should draw you a square

- Discussion Forums
- » Help with Scripts
-
» Drawing a shape by coordinates