Page 2 of 2

PostPosted: Thu Feb 17, 2005 7:59 pm
by willg101
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;
}

PostPosted: Thu Feb 17, 2005 10:04 pm
by jj2197
I tried that, but It didn't work. :(

PostPosted: Fri Feb 18, 2005 3:45 am
by makslane
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

PostPosted: Fri Feb 18, 2005 5:06 am
by jj2197
I tried that but, it didn't work.

PostPosted: Fri Feb 18, 2005 3:39 pm
by makslane
What's happen?
Can you send me your game with this code?

PostPosted: Sat Feb 19, 2005 6:01 am
by jj2197
I found out what I did wrong. I had the storeLastKey twice.

PostPosted: Sat Feb 19, 2005 1:35 pm
by ingsan
makslane wrote:Wait the 1.2.8 version . . . (will be released soon)
M m m m ! YouPiiii :P