cheatz help plz

Non-platform specific questions.

cheatz help plz

Postby mrgame » Sun Nov 04, 2007 5:50 pm

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?
mrgame
 
Posts: 118
Joined: Sun Oct 21, 2007 8:09 pm
Location: my computer
Score: 3 Give a positive score

Re: cheatz help plz

Postby makslane » Sun Nov 04, 2007 6:15 pm

Use a Key Down event with the option 'Keys are pressed in order'.
The follow file will create the gold actor after type: spawngold
Attachments
cheat.zip
(627 Bytes) Downloaded 84 times
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: cheatz help plz

Postby Game A Gogo » Mon Nov 05, 2007 1:13 am

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.
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

Re: cheatz help plz

Postby mrgame » Wed Nov 07, 2007 7:01 pm

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
mrgame
 
Posts: 118
Joined: Sun Oct 21, 2007 8:09 pm
Location: my computer
Score: 3 Give a positive score

Re: cheatz help plz

Postby Game A Gogo » Thu Nov 08, 2007 12:41 am

well then, you would use my method. As makslane's one will do it whenever it is pressed no matter what
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

Re: cheatz help plz

Postby mrgame » Sat Nov 10, 2007 11:38 pm

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
mrgame
 
Posts: 118
Joined: Sun Oct 21, 2007 8:09 pm
Location: my computer
Score: 3 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron