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

#1 2008-01-26 16:21:58

Questie-Rune
Scratcher
Registered: 2007-12-29
Posts: 4

Is there a way i can do this?

Is it possible to make somthing that you can type in a name and it will become the name of your character (Im making a long RPG) instead of pre-made names?

Offline

 

#2 2008-01-26 16:25:19

Lanie624
Scratcher
Registered: 2007-07-13
Posts: 500+

Re: Is there a way i can do this?

I think it is but im not sure how to do that!


smile

Offline

 

#3 2008-01-26 16:27:11

Questie-Rune
Scratcher
Registered: 2007-12-29
Posts: 4

Re: Is there a way i can do this?

Yeah, I'm pretty sure it's possible, but I don't think I know how! (Phooy)

Offline

 

#4 2008-01-26 16:55:26

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Is there a way i can do this?

You could, but it won't be easy as scratch lacks string variables. So you can't save the name as a word variable. I think it would be simpler to just let the user just from a list of names.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#5 2008-02-04 11:34:42

messd002
Scratcher
Registered: 2007-12-07
Posts: 100+

Re: Is there a way i can do this?

It is possible, but as far as I know it needs lots of sprites and costumes... and you can't use the speech option in looks to say the name.


Burn baby Burn!

Offline

 

#6 2008-02-04 11:56:46

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

Re: Is there a way i can do this?

Chalkmarrow has written an entire text handling system, for short text strings.  I don't know how hard it would be to graft it on to your project (maybe too hard) but take a look at this

http://scratch.mit.edu/projects/chalkmarrow/81944


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

Offline

 

#7 2008-02-04 14:17:40

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

Re: Is there a way i can do this?

Questie-Rune: It shouldn't be to difficult. If you post a test program I can probably add the string sprites to it so you can see how it's done. I was thinking of making a (much) simplified string for that purpose, just because the one I have now has too many crazy features.

Offline

 

#8 2008-02-04 15:47:29

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

Re: Is there a way i can do this?

Questie-Rune: I made a simple project (the "Main" sprite) that demonstrates how to do it:

http://scratch.mit.edu/projects/chalkmarrow/93182

Offline

 

Board footer