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

#1 2009-04-06 20:25:57

Nanner
Scratcher
Registered: 2009-03-26
Posts: 9

Typing

I'm trying to make a sort of typewriter keyboard, and when each key is pressed print the corresponding letter somewhere else.  Here's all I can think of: to have each key be a sprite, each with a second sprite that's the corresponding letter, which would go to some x/y and stamp itself.  Is there an easier or better way?

Thanks.

Offline

 

#2 2009-04-06 20:40:32

Mike_W
Scratcher
Registered: 2009-02-05
Posts: 100+

Re: Typing

Search for hangman - it does a big part of that - and it's one of the coolest projects I have seen

Offline

 

#3 2009-04-07 00:13:46

Nanner
Scratcher
Registered: 2009-03-26
Posts: 9

Re: Typing

Thanks, that helped.

Offline

 

#4 2009-04-07 01:24:03

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Typing

You will notice in my Hangman game that the keys stay down (to show which letters have been guessed).  If you want the keys to go back up, you'll need to attach a little bit of code to each key--the code is already there, just not attached.

Hope this helps!


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

Board footer