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

#1 2009-05-18 15:35:24

Ellieellieo
Scratcher
Registered: 2009-05-18
Posts: 5

How to write and draw?

I want to be able to let the audience of my game draw things on the screen and type in letters and write things on screen, but i'm not sure how. Sorry if this shows up twice, and thanks!

Ellieellieo

Offline

 

#2 2009-05-18 16:31:16

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

Re: How to write and draw?

Drawing can easily be done with pen. Just use this script on the sprite you want to use as a drawer:

when Green Flag clicked
forever
  if <mouse down>
    pen down
  else
    pen up

The typing is a little bit more complex. You'll have to make twenty-six costumes (one for each ofthe letters of the alphabet) and make a script on the sprite for each of the letters:

when key [A ] pressed
switch to costume [A ]
stamp

Remember that you'll have to continually clear the screen when the green flag is clicked with the [clear] block.

Offline

 

#3 2009-05-18 18:56:08

Penguinsrock
Scratcher
Registered: 2008-11-08
Posts: 1000+

Re: How to write and draw?

coolstuff wrote:

Drawing can easily be done with pen. Just use this script on the sprite you want to use as a drawer:

when Green Flag clicked
forever
  if <mouse down>
    pen down
  else
    pen up

The typing is a little bit more complex. You'll have to make twenty-six costumes (one for each ofthe letters of the alphabet) and make a script on the sprite for each of the letters:

when key [A ] pressed
switch to costume [A ]
stamp

Remember that you'll have to continually clear the screen when the green flag is clicked with the [clear] block.

The typing part, there is another better way but tougher. I can't remember


POKEMON & Internets CLICK?
http://internetometer.com/imagesmall/10824.png

Offline

 

Board footer