I need help with this.

Talk about making games.

I need help with this.

Postby Hblade » Thu May 15, 2008 12:47 am

I need help with this. I need to make it so that the text actor like... well... Ok, for a password. When you press enter, it closes the program, but only if it's the right password.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: I need help with this.

Postby DST » Thu May 15, 2008 2:05 am

Ok, make a text actor. Enable input in the text options, give it a border, set 'get input focus', then in the text window just type 8 spaces, so its blank. you now have a textbox 8 spaces wide.

Then add keydown event, p a s s w o r d enter, and in the box for keydown event choose 'all keys are pressed in order'.

So really its just a keydown event, and the text in the box is only there so the player can see it.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: I need help with this.

Postby Hblade » Wed May 21, 2008 2:15 am

I got it now, thanks. I'll use and do what you said. Thanks allot. I apreciate it.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron