Page 1 of 1
cheatz help plz
Posted:
Sun Nov 04, 2007 5:50 pm
by mrgame
i have a text actor that has text input enabled. i want it so when
spawn_gold is typed in it creates the actor gold 0,0 of actor PLAYER.
i have tryed everything i can think of. anyone help?
Re: cheatz help plz
Posted:
Sun Nov 04, 2007 6:15 pm
by makslane
Use a Key Down event with the option 'Keys are pressed in order'.
The follow file will create the gold actor after type: spawngold
Re: cheatz help plz
Posted:
Mon Nov 05, 2007 1:13 am
by Game A Gogo
- Code: Select all
if(strcmp(text, "gold_key")==1)
{
createactor("goldkey", player.x,player.y, true);
}
I'm not sure if it's completely right.
Re: cheatz help plz
Posted:
Wed Nov 07, 2007 7:01 pm
by mrgame
hummm
what?
just tell me if wt both of u told me is what i was thinking
at the moment i have an actor that is text enabled
i have it so when you press ¬ the actor apears at the bottom left of the screen.
i have it so when i type in say 4078 in the actor and press enter it creates gold. i have all this dont allready
if got it as
on keydown enter
if (cheatz.textNumber == 3708)
{
createactor gold ect
}
but wt would i need for text
say like
if cheatz.text = spawn_gold or somthing like that
Re: cheatz help plz
Posted:
Thu Nov 08, 2007 12:41 am
by Game A Gogo
well then, you would use my method. As makslane's one will do it whenever it is pressed no matter what
Re: cheatz help plz
Posted:
Sat Nov 10, 2007 11:38 pm
by mrgame
im sorry but that makes no sence
the code dosnt work no matter what i do.
i dont even know where you would put it.
is it realy that hard to exsplain?
on keydown enter i want it so
if the actor cheatz text is spawn_gold the actor gold is create 0,0 of actor player
all the actor names are right there so use them in the code.
if i need to ad any varibles please tell me
if i need to put it anywhere els tell me
and what the hell is gold_key? im so confused