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

#1 2008-09-04 21:03:46

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Text Input with 1.3

Now that Scratch has some text functionality, I've been trying to come up with a way for the user to enter text at runtime.  I have found a very imperfect way to kind of do this, demonstrated in this project:

http://scratch.mit.edu/projects/Paddle2SeeFixIt/257886

Note that the upper case shift logic does not seem to be working in the online Java player, resulting in random upper/lower case for certain letters.  Download for accurate performance.

If somebody comes up with a cleaner way to do text entry at runtime (and I REALLY hope that somebody does), please let me know.

Scratch Team, this appears to be another example of strange Java player behavior with a 1.3 project.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#2 2008-09-04 21:20:47

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Text Input with 1.3

neat! I might use this for my questhack games, if i do i'll be sure to give you credit


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#3 2008-09-04 23:15:33

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Text Input with 1.3

Cool. I was just about to upload one of these, calling it "ugly concantenation".


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#4 2008-09-05 00:06:49

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

Re: Text Input with 1.3

Man... There's more than a few problems with the online Java player, it appears.

Offline

 

#5 2008-09-05 04:48:24

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Text Input with 1.3

fullmoon wrote:

Cool. I was just about to upload one of these, calling it "ugly concantenation".

That's a very accurate name!  I really wish we had a real concatenation operator...(and a few other string functions) - maybe in 1.4!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#6 2008-09-05 04:51:04

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Text Input with 1.3

chalkmarrow wrote:

Man... There's more than a few problems with the online Java player, it appears.

You can say that again....
[blocks]
<repeat( 100

chalkmarrow wrote:

Man... There's more than a few problems with the online Java player, it appears.

<end>
[/blocks]


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer