a question

Talk about making games.

Postby willg101 » Thu Feb 17, 2005 7:59 pm

Could you do this for multiple cheats?

Code: Select all
storeLastKey(getLastKey());

if(areLastKeys("cheat1")) //Catch the cheat word
{

    x += 10;
}
if(areLastKeys("cheat2")) //Catch the cheat word
{
   
    x += 10;
}
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby jj2197 » Thu Feb 17, 2005 10:04 pm

I tried that, but It didn't work. :(
User avatar
jj2197
 
Posts: 51
Joined: Sun Feb 06, 2005 10:01 am
Location: St. george
Score: 0 Give a positive score

Postby makslane » Fri Feb 18, 2005 3:45 am

Code: Select all
storeLastKey(getLastKey());

if(areLastKeys("cheat1")) //Catch the cheat word
{
    //The action for cheat1
    x += 10;
}

if(areLastKeys("cheat2")) //Catch the cheat word
{
     //The action for cheat2
    y += 10;
}



Works fine
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby jj2197 » Fri Feb 18, 2005 5:06 am

I tried that but, it didn't work.
User avatar
jj2197
 
Posts: 51
Joined: Sun Feb 06, 2005 10:01 am
Location: St. george
Score: 0 Give a positive score

Postby makslane » Fri Feb 18, 2005 3:39 pm

What's happen?
Can you send me your game with this code?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby jj2197 » Sat Feb 19, 2005 6:01 am

I found out what I did wrong. I had the storeLastKey twice.
User avatar
jj2197
 
Posts: 51
Joined: Sun Feb 06, 2005 10:01 am
Location: St. george
Score: 0 Give a positive score

Postby ingsan » Sat Feb 19, 2005 1:35 pm

makslane wrote:Wait the 1.2.8 version . . . (will be released soon)
M m m m ! YouPiiii :P
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Previous

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest