Discuss Scratch

_EIektron_
New Scratcher
17 posts

Using lists to make a pen shape?

Hey! The problem I am facing right now might be really really basic to many of the expert scratchers here, but I am really not that good with pen and lists , and I have been trying to find a way that works to solve this problem for a while but I can't find any.

What I am trying to do is making a list that stores the x and the y position of a shape, x positions are stored for every odd number of the list and y positions are stored every even number. I can do this manually but I figured that if I were to make a shape with lots of points it wouldn't really be pleasing to do it. So can anyone please help?

https://scratch.mit.edu/projects/155463477/
asivi
Scratcher
1000+ posts

Using lists to make a pen shape?

repeat until <>
add (x position) to [list v]
add (y position) to [list v]
...pen movement...
end

Last edited by asivi (April 13, 2017 09:27:02)

footsocktoe
Scratcher
1000+ posts

Using lists to make a pen shape?

You might get some ideas from this… https://scratch.mit.edu/projects/92499286/

Powered by DjangoBB