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

#1 2008-06-18 16:17:41

RozenFlower
Scratcher
Registered: 2008-05-03
Posts: 4

Help With 'Pen'

I'm making a game where you can paint on a cats face So I scripted it like so.

when Green Flag clicked
set pen color to (Black)
Set Pen size to (7)

When Gree flag clicked
Forever
if Touching sprite (cat face) And Mouse Down
Pen down
if Else
Pen up

And it wont write on the sprite! Or even work so I need some help.

Offline

 

#2 2008-06-18 16:44:36

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Help With 'Pen'

Pen doesn't work on top of other sprites - it draws underneath them. If you make the cat the background then you can draw on top of it.


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#3 2008-06-18 17:12:07

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Help With 'Pen'

THAT is something I didn't know.

Offline

 

#4 2008-06-18 17:54:01

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Help With 'Pen'

All pen and stamp tools are behind sprites because the sprites are in the foreground, and all painting is done in the background. You can't paint on a sprite.


All your base are belong to us

Offline

 

#5 2008-06-18 18:53:05

S65
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: Help With 'Pen'

Alternatively, stamp the sprite you want to paint on, set the the original sprite's ghost effect to 100, and use the pen to paint over that instead. You can still use the original sprite for touching detection

Last edited by S65 (2008-06-18 18:53:38)

Offline

 

#6 2008-06-18 18:59:14

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Help With 'Pen'

Hm, that works!


All your base are belong to us

Offline

 

#7 2008-06-19 09:55:13

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Help With 'Pen'

Or, you could create a mask. That way you can only draw on the cat. I have uploaded a test:

http://scratch.mit.edu/projects/JSOlabs/192030


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#8 2008-06-19 10:03:40

Lanie
Scratcher
Registered: 2008-02-03
Posts: 1000+

Re: Help With 'Pen'

You can use my project Pen Paint to help you with some of the scripts

Offline

 

#9 2008-06-19 10:48:49

1pikachu1
Scratcher
Registered: 2007-12-23
Posts: 36

Re: Help With 'Pen'

You can also try some of my pen art line of projects and see if that works.

Offline

 

Board footer