This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-10-30 10:16:35

spaceguy12
Scratcher
Registered: 2010-04-04
Posts: 7

Saving things in OS

So far i know only paint thing, but it's not tested yet, and only works if there is only 1 size. When your drawing, put this in the script. add (x pos) of mouse pointer to (x list) and this: add (y pos) of mouse pointer to (y list). make an icon appear (using hide and show) called paint.file. Then, add a script that makes a dot go to the list's positions. Let's say it's positions are: (x list) 0, 5, 10. It wil set it's X pos to 0, color it in, 5, color it in, and 10, color it in. Same thing with the Y list. also, to use different colors use a different script: Color List. Add (varible having color value in it) to (ColorList), and when it goes around, make it say set penColor to (Color List) before it sets X and Y. sry if this is confusing, i thought of it just now.

Offline

 

#2 2010-10-30 10:59:01

spaceguy12
Scratcher
Registered: 2010-04-04
Posts: 7

Re: Saving things in OS

It works! Here's what i used:

green flag
set z=0
set test=0
repeat legnth of X
z=z+1
delete z of X
delete z of Y
delete z of C
end of repeat
forever
if mouse down and test=0
set c to random -100, 100
set color to c
go to mouse pointer
add x pos to X
add y pos to Y
add c to C
end if
if key space pressed
test=1
z=1
repeat until z=Legenth of X
z=z+1
set X to (z of X)
set Y to (z of Y)
set color to (z of C)
end repeat
end if



this is sprite's color, u can modify it to be pen color.

Offline

 

Board footer