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

#1 2012-09-08 09:30:07

ROSMan
Scratcher
Registered: 2011-04-29
Posts: 1000+

Help! (i don't know how to describe it)

I want to make a cursor that's fixed like the drawing a level mode in this project.

As of now, my Scratch is freaking out, so I can't download projects. Could someone at least show me the scripts they used to achieve that?

Thanks!


GENERATION 33: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment

Offline

 

#2 2012-09-08 09:54:12

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Help! (i don't know how to describe it)

ROSMan wrote:

I want to make a cursor that's fixed like the drawing a level mode in this project.

As of now, my Scratch is freaking out, so I can't download projects. Could someone at least show me the scripts they used to achieve that?

Thanks!

http://wiki.scratch.mit.edu/wiki/Snap_to_Grid


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#3 2012-09-09 22:25:45

bird12345
New Scratcher
Registered: 2012-08-17
Posts: 10

Re: Help! (i don't know how to describe it)

Here is the project script for the mouse:

when gf clicked
clear
go to x: (-12) y: (0)
forever  
if <(mode) = (1)>
show
if <(mouse y) > (y position)> 
if <not <(y position) = (168)>> 
change y by (24)
end
end
if <(mouse x) > (x position)> 
if <not <(x position) = (228)>> 
change x by (24)
end
end
if <(mouse y) < (y position)> 
if <not <(y position) < (-119)>> 
change y by (-24)
end
end
if <(mouse x) < (x position)> 
if <not <(x position) = (-228)>> 
change x by (-24)
end
end
else
hide
end
end

Offline

 

#4 2012-09-09 22:28:58

bird12345
New Scratcher
Registered: 2012-08-17
Posts: 10

Re: Help! (i don't know how to describe it)

And this:

when gf clicked
forever  
if <(mode) = (1)>
if <mouse down?>
if <(mouse y) > (-140)> 
repeat until <not <mouse down?>>  
switch to costume (grid colour)
stamp
end
end
else
switch to costume ((grid colour) + (3))
pen up
end
else
hide
end
end

Offline

 

Board footer