Passwords and Codes

Talk about making games.

Passwords and Codes

Postby Hedfone » Fri Dec 01, 2006 11:50 pm

Im looking for a way to add passwords for level skips. Kind of like what Game a Gogo did in 'Omega Pong' (those of you who played/tested it) with the confirmation number. Can someone please tell me how, or make demo of how, this can be accomplished?
thanks :D
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Game A Gogo » Sat Dec 02, 2006 12:12 am

ok, create a actor text whit text input.

2. set like the text to "0000000"

3. like on "enter" keydown do this:
Code: Select all
if(textNumber==1223456)
{
//level2
}
else if(textNumber==654321)
{
//level3
}
//ect


and thats all ^^
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Hedfone » Sat Dec 02, 2006 12:14 am

wow, seems easy enough...
one problem, I've no idea on how to make a text actor respond to typing :(
also, I was kind of hoping that they could be words so as to be easily remembered. if not w/e # are fine :D
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Game A Gogo » Sat Dec 02, 2006 12:18 am

letters is more complicated, and you don't want your player to remember, you want him to play the game again until he reaches the level he was before.

on the text input thing (where you define your text for the actor) there is a selection box the far down on the windows saying input or something, select yes and select the properties.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

passwords for lvls

Postby mr-game » Tue Jan 30, 2007 9:13 pm

i like to fined easy way's round things
for past codes or cheats i just do this
create a key down action and put lets say 1234 then chaneg it to keys pressed in order and put like move to and pick the place where lvl 3 is and so on
same with cheats say up up b then click in order and make it go realy fast
hoped this helped sorry for the spelling bit late and well my bad
manly for other people that come to few this to finded out how
erm hi
mr-game
 
Posts: 28
Joined: Mon Jan 29, 2007 10:32 pm
Location: my computer
Score: 1 Give a positive score

Postby arcreamer » Thu Aug 23, 2007 5:04 am

hey game a go, would u change the textNumber to whatever the password is in ur script?
arcreamer
 
Posts: 398
Joined: Tue Jul 03, 2007 4:08 pm
Score: 9 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron