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

#1 2010-04-27 06:24:40

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Would could I go about making a mesh drawing project?

I tried and failed. How do I go about doing this?

In BYOB, not normal Scratch... I've tried and failed several times to hack it.


-End Transmission-

Offline

 

#2 2010-04-27 06:27:37

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Would could I go about making a mesh drawing project?

Record every move that is made and send the stuff to the other computer, where it draws what was recorded. Do it on both computers!  wink


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2010-04-27 06:37:03

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: Would could I go about making a mesh drawing project?

Jonathanpb wrote:

Record every move that is made and send the stuff to the other computer, where it draws what was recorded. Do it on both computers!  wink

How could I go about doing that?

EDIT: I mean, in terms of block usage, list usage, etc.

Last edited by iCode-747 (2010-04-27 06:37:41)


-End Transmission-

Offline

 

#4 2010-04-28 16:08:22

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Would could I go about making a mesh drawing project?

You make a sprite that allways follows the mouse. And then set the ghost effect to 100. Then you put a code

Code:

FLAG CLICKED
Forever
if <mouse down>
  pen down
  set variable On/Off to on
else
  pen up
  set variable On/Off to off

Then make another script on the same sprite:

Code:

FLAG CLICKED
Forever
  set variable 'X' to x position
  set variable 'Y' to y position

You then make a new sprite with the ghost effect of 100
Then put the script

Code:

FLAG CLICKED
Forever
 Goto (X sensor value) (Y sensor value)
 if <On/Off = On>
  pen down
 else
  pen up

Then 1 final script

Code:

FLAG CLICKED
clear

There a working drawing Mesh program.


You can now reach me on Twitter @johnnydean1_

Offline

 

Board footer