Posted By
|
Message
|
Pyro
Registered 22/05/2003
Points 110
|
24th May, 2003 at 19:54:29 -
I'm working with TGF, and I was wondering if any of you know of a good way to about adding one.
I'd like to make it so that when a password is entered it activates or deactivates the cheat but, A: the only thing the menu passowrd will
do is skip you levels. B: I have no clue if it's possible to do it with the "Edit" object, because I have never used it.
n/a
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
24th May, 2003 at 22:06:45 -
There are a few ways of doing cheats, the password box is usually useless but if it's used well you can do great things. If you like the password box you can make it take you to a cheat selection screen. Then you can have lots of tick boxes and you tick the cheat that you want. Then have some code saying if box was ticked change global value 1 to 1. Then in you actual game, have some code saying: if global value a = 1 - set health to 100%
That's a short example for unlimited health. The edit box option is good aswell you can make your password screens look alot more effective. All you need to do is have an edit box and code saying:
(compare 2 general values)
If editbox text = "godmode" - set global val a to 1
General values is cap sensitive so in the edit box options you have to change the modify text to either uppercase or lowercase. And do the same in the comparign values, ("GODMODE" or "godmode")
One other way is the ingame type, for this all you need is a counter. Then:
*If pressed "G"
+ Counter = 0 - add one to counter
If pressed "O"
+ counter = 1 - add one to counter
If pressed "D"
+counter = 2 - add one to counter
Only one bug in that type, you might mash the keyboard and activate the cheat because there is no thing to say if you pushed the wrong button. But i'm sure someone will post how to detect that.
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
Pyro
Registered 22/05/2003
Points 110
|
24th May, 2003 at 22:47:57 -
Thanks man, I think I'll the second one a try. I was trying to saty away from the first one since it would result in like 30 global counters.
n/a
|
Pyro
Registered 22/05/2003
Points 110
|
24th May, 2003 at 22:52:04 -
Since you can't edit your posts I'll just type it correct this time.
Thanks man, I think I'll give the second one a try. I was trying to stay away from the first one since it would result in like 30 global counters.
n/a
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
25th May, 2003 at 04:04:56 -
Lol, it's ok man. You don't have to post it twice people can usually work out wat you are trying to say. I didn't even notice that error in the first post. I just read right through it.
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
25th May, 2003 at 04:04:59 -
Lol, it's ok man. You don't have to post it twice people can usually work out wat you are trying to say. I didn't even notice that error in the first post. I just read right through it.
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
Pyro
Registered 22/05/2003
Points 110
|
25th May, 2003 at 13:07:18 -
Haha okay, I have one more question though. If I use the edit object how do
I get the edit thing to recognize the text I enter. It doesn’t have a condition like is certain text entered.
n/a
|
Klikmaster Master of all things Klik
Registered 08/07/2002
Points 2599
|
25th May, 2003 at 13:49:34 -
i think you use "compare 2 general values"
n/a
|
Pyro
Registered 22/05/2003
Points 110
|
25th May, 2003 at 14:43:22 -
Oh duh, thanks
n/a
|
RapidFlash Savior of the Universe
Registered 14/05/2002
Points 2712
|
25th May, 2003 at 16:04:58 -
If you have MMF1.5 you could record certain key strokes to an alterable string (which would get rid of the problems with text boxes). If you don't have any buttons or other edit boxes on the screen, do:
Always ---> Textbox-Get Focus or SetFocus On
Or something like that (it will have the focus part though). This is so the player won't have to click on the edit box in order to activate cheat mode.
http://www.klik-me.com
|
Pyro
Registered 22/05/2003
Points 110
|
27th May, 2003 at 13:05:46 -
I compare the the two global values, but I still don't know exactly what goes in these two boxes.
Do you use TGF too andy?
n/a
|
|
|