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

#1 2007-11-15 14:03:02

rachel0jones
Scratcher
Registered: 2007-11-12
Posts: 1

Pen Tool

Hi I'm a trainee teacher trying to get to grips with the programme before taking it into school so am making an example game.

Does anyone know how to get a paintbrush sprite to paint over only a section of a background?  I have the pen tool following the mousepointer and changing colour but can't seem to set boundaries to where gets painted.

Help!

Thanks :-)

Offline

 

#2 2007-11-15 16:31:06

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Pen Tool

If you are creating your own drawing program and are trying to prevent the pen from writing when say x>10 or y<-20, then add

if  x > 10 or y < -20
   pen up
else
   pen down

in your mouse-following code.

Offline

 

Board footer