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

#1 2009-12-26 16:11:40

lauraac
Scratcher
Registered: 2009-12-14
Posts: 5

Pen drawing

I want to have a painting tool in my Music Maker.  The idea would be clicking on the note would change the color of the pen, and you could then draw the spots where that note would be played.  I would also like to try a version of this project with simply stamping the note sprite, a small dot, which would then play a note for as long as the note is touching the "play head".  The project is currently called Music Maker (broken).  I have the musical parts done but I need help with the stamping/painting bits.  Ideas?

Last edited by lauraac (2009-12-26 16:11:50)


It's hard to make a stealth entry when you're wearing swooshy pants.

Offline

 

#2 2009-12-26 19:28:56

andrewcevery
Scratcher
Registered: 2008-03-23
Posts: 28

Re: Pen drawing

Hi! It would be pretty simple:
if touching mousepointer and mouse down
{
set pen color to(insertcolorhere)
repeat until key (insertanykeyhere) pressed
{
go to mouse-pointer
if mouse down
{
repeat until not mouse down
{
go to mouse-pointer
pen down
}
pen up
}
}
}

Offline

 

#3 2009-12-26 19:30:36

andrewcevery
Scratcher
Registered: 2008-03-23
Posts: 28

Re: Pen drawing

put it in your note scripts

Offline

 

#4 2009-12-26 20:02:54

lauraac
Scratcher
Registered: 2009-12-14
Posts: 5

Re: Pen drawing

So that would be actually painting the music.  I tried some stuff with stamping but it was really difficult to have it jump back to the spot it started at and not making a mess while doing so.  Thanks for the help!

Last edited by lauraac (2009-12-26 20:03:06)


It's hard to make a stealth entry when you're wearing swooshy pants.

Offline

 

Board footer