PDA

View Full Version : Putting Cheats into your Flash Game


curtisr
05-27-2006, 11:59 AM
Hey guys and gals, I was just wondering how to put cheats into your game, if there were any special programs or anything, I've searched this site and google but couldn't find anything, I'm sorry if there has already been a post like this that I've over looked.

Thanks,
CurtisR

cryzabey
05-27-2006, 01:13 PM
Umm...

Couldn't you just have a little input box on the screen with the var of cheat
and a dynamic box off the screen with the dynamic var cheat. Then have a button that says:

on (press){
gotoAndStop(_root.cheat);
}


and name the frame the name of the code they need to put in the cheat input text box?

OR

Make it so when they press the button it enables like godmode, like the #1 is godmode and the #2 is extra life? kind of like:

on (press){
if (_root.cheat == "god"){
_root.hp = _root.hp + 99999;
if (_root.cheat == "doggy"){
_root.Lives = _root.Lives + 1;
}
}
}

Of course that's assumeing that that's your variable names for your stuff

Wrote this fast so if something sounds wrong msg me

Espo Mk. II
05-27-2006, 08:06 PM
is that how they put cheats in ps2 games and such?

teenagegluesniffer
05-27-2006, 09:28 PM
PS2...is lame...and no that's not how. PS2 games were not made in flash. They were made in lame. nr...but probably C++...or something..but no flash.

cryzabey
05-27-2006, 10:10 PM
Teenageglusniffer is right

Ps2 games and such don't use the same coding as flash games. Also, it depends on the game on how you actviate the cheat. I just showed you two of the several ways you can do it.

Espo Mk. II
05-28-2006, 10:00 AM
you mean like and title screen that says enter cheat code here? or something...

cryzabey
05-28-2006, 10:02 AM
you could have it in the title or ingame... ur choice

(if u need more help add me)

Msn: cryzabey@yahoo.com
Aim: cryzabey

curtisr
05-28-2006, 11:45 AM
thanks guys, that's what I was thinking

Matt
05-29-2006, 04:27 AM
Or make it so you if you hit c and control your health goes up or hit c to open up the cheat window.

Jimbimanim II
05-29-2006, 04:31 AM
...and for change character cheats, you could use my attachMovie() tutorial (or download my character chooser engine)

-character chooser engine (http://forums.xgenstudios.com/showthread.php?t=50764)
-attachMovie() tutorial (http://forums.xgenstudios.com/showthread.php?t=50751)

unless you know how to do these....buy hey, im only trying to help.

curtisr
05-29-2006, 05:29 AM
ok guys, I think I've got it, thanks a lot...

arkhan
05-29-2006, 05:45 AM
well..the answer would be yes, PS2 games have the same system for cheating as you can have in your flash game..somenthing like, pressing buttons in a certain order in a certain screen, writing somenthing somewhere, doing somenthing in the game..etc..
all you really have to do is the exceptions in the code.. somenthing similar to:

if(get hit){
if(!cheat){
lose HP
}else{
dont lose HP
}
}

and anything goes like this..

curtisr
05-29-2006, 06:01 AM
well..the answer would be yes, PS2 games have the same system for cheating as you can have in your flash game..somenthing like, pressing buttons in a certain order in a certain screen, writing somenthing somewhere, doing somenthing in the game..etc..
all you really have to do is the exceptions in the code.. somenthing similar to:

if(get hit){
if(!cheat){
lose HP
}else{
dont lose HP
}
}

and anything goes like this..

Hey dude, something doesn't have a 'n' in it... Just helping out.

zakob
05-29-2006, 06:04 AM
Or you could make a small box on the bottom corner and on mouse over it gets bigger and you can selct cheats or type 'em in.

MaxManning
05-29-2006, 07:09 AM
If you have a main menu, you can just add a "cheat" option on the menu.

If you want to be able to enter cheat at any time during the game, you could just make the main menu accessible from inside the game via a button or onscreen icon you click on -- like a pause menu.