The Daily Click ::. Forums ::. Klik Coding Help ::. Enter Your Name Engine
 

Post Reply  Post Oekaki 
 

Posted By Message

Sparks_the_Echidna



Registered
  18/10/2003
Points
  28
5th November, 2003 at 18:33:56 -

Does anyone know how to make a 'enter your name' thing that is used like in Zelda games?

Thanks in Advance,
Sparks

 
The Legend of Zelda: The Legendary Swords
- Live the Legend -
http://www.zeldatls.tk/

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
5th November, 2003 at 23:03:25 -

Just put in an edit object, and when you want to use the name the person typed in, just get the text of the edit object:

Pressed 'Enter' - string1.text = edit1.text

So just get the text from the edit box and put it into a string or wherever you need it.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Lew



Registered
  06/01/2002
Points
  1014
6th November, 2003 at 12:39:19 -

A better way of explaining:
You will need the INI object in the level.
Have an edit box in the level that the user can input their name in. When the 'ok' or 'submit' or whatever confirmation you have is pressed:

INI: Set file to name.ini
Set group to name
Set item to name
Set string str$("Edit box")

Then, when you want to call the name, do this:

(Event) Set file to name.ini
Set group to name
Set item to name

(lets say you wanted to stick the name in a string, the string looks like "Hello <name>, lets go!")

Set alterable string of (sentence string) to "Hello" + string$("ini") + " , lets go!)

 
<--intelligent, witty comment here-->

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
6th November, 2003 at 12:47:13 -

i think he means one of those pages of letters where you select the ones you want in order:

_ _ _ _ _ _ _ _

A B C D E F G
H I J K L M N
O P Q R S T U .. etc

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
6th November, 2003 at 13:04:14 -

well, that's totally pointless on a PC with a keyboard, isn't it?

 
www.thenatflap.co.uk

renneF



Registered
  02/08/2003
Points
  672
6th November, 2003 at 13:15:06 -

but it makes it authentic!

 
Image

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
6th November, 2003 at 13:45:14 -

Awkward, more like.

 
http://www.davidn.co.nr - Games, music, living in America

BattleCat



Registered
  08/09/2002
Points
  978

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
6th November, 2003 at 14:02:09 -

That method is only good if you're making a retro game of some sort... i mean, have you ever seen a SNES rpg without that system ?

 
n/a

Aali [Crazy_Productions]



Registered
  13/10/2002
Points
  843
6th November, 2003 at 14:05:30 -

because the SNES has no keyboard..

 
"If Darl McBride was in charge, he'd probably make marriage unconstitutional too, since clearly it de-emphasizes the commercial nature of normal human interaction, and probably is a major impediment to the commercial growth of prostitution."
-- Linus Torvalds, December 5th 2003.

(Darl McBride is CEO of The SCO Group)


this place sucks but don't tell anyone, it's our little secret, ok?

Pkeod

Oontz Oontz Oontz

Registered
  19/11/2002
Points
  93

VIP Member
6th November, 2003 at 22:20:10 -

This is quite easy, it just takes a large amount of events (sorta) really only as many as letters or numbers you want availible... first you havet to make a aobject with as many directions as possible... (use the four on the bottom that are custom) have each direction as a letter or number (hotspot should be at the same space. This object will be for the name on the bottom (togther, like P K E O D) then you will need to make sepret little active objects for each letter or number, make a semi transpartent active object that can overlap each letter without going on another... then arrange them in rows... and make sure you write down the location of each letter (also label them correct) now in the events have it so that you have a somewhat 3d set of counters (just 2 actually you will need one for the x and y location) ok now they are all nice and tidy and such... now start each (counter) at 0,0 then when you press down add one to the second counter now make an event to check for it, if counter = 0,1 then position of semi transparent object = (first collum, second row) now add an event for when you press a button, (ctrl) you must have an event for each letter (if overlapping semi trans, plus ctrl) so that you can set the letter for your name... now you must make a new counter for were you are editing... also add an event to set a counter to the a value for each one.. makeing the max 5 is easy, so only make five other objects (the ones with the directions) now when you press ctrl.. damn ... it would be easier to make an example then to try to explain it

sorta get it? its really easy I might make an example...

Image Edited by the Author.

 
Faerie Solitaire - Get it now:

http://www.create-games.com/download.asp?id=7792

Lew



Registered
  06/01/2002
Points
  1014
7th November, 2003 at 10:00:49 -

If you have MMF the formatted string object can do it for you

 
<--intelligent, witty comment here-->

Pkeod

Oontz Oontz Oontz

Registered
  19/11/2002
Points
  93

VIP Member
7th November, 2003 at 18:40:25 -

I am actually working on an example... though because it has a large amount of events (even more for the full alphabet) it would be ideal for mmf... its not done yet but if you want it contact me.

 
Faerie Solitaire - Get it now:

http://www.create-games.com/download.asp?id=7792

Mr Coffee



Registered
  04/09/2003
Points
  440
7th November, 2003 at 20:45:23 -

Link To The Past had the coolest "enter your name" screen of all time in my opinion.

 
99 percent chance that the above post is 100 percent correct.

rocker (juraj5)



Registered
  02/01/2003
Points
  194
8th November, 2003 at 07:41:26 -

and artificial backspace will be problem

how could we code this:

upon pressing enter + alterable value is {value when picture BACKSPC is selected in animation direction} = set alterable string of text to current text minus last character? or set editbox to current editbox string minus last character? waaaargh......

Image Edited by the Author.

 
never surrender, except when you need to

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
8th November, 2003 at 11:26:01 -

Artificial backspace would be easy. Find the length of the string, then set it to the number of characters -1 from the left of the string.

 
n/a

Sparks_the_Echidna



Registered
  18/10/2003
Points
  28
9th November, 2003 at 11:02:31 -

I don't have MMF. I use TGF and CnC (mostly CnC now). Can it be done in TGF/CnC?

Also, I would like the system used in the SNES RPG's since Edit Object is the easy way out.

Image Edited by the Author.

 
The Legend of Zelda: The Legendary Swords
- Live the Legend -
http://www.zeldatls.tk/

cake



Registered
  13/12/2002
Points
  1173
10th November, 2003 at 06:03:58 -

I have a simple way to do it. 9 events. Ill submit it as an article as it is too much writing here.

http://www.create-games.com/article.asp?id=1209

I will also make an example cca and post the download link for it in the article.
Hope I helped, :S

 
n/a
   

Post Reply



 



Advertisement

Worth A Click