Joined: 19 Dec 2005
|Posted: Fri Oct 03, 2008 3:38 am Post subject:
|Well, if this is a serious question, then I'll answer.
Usually games that have characters who become invincible for a short period of time when they get hit store their invincibility data in one of two ways:
1) Have a countdown timer that starts when the character gets hit. It usually starts at a value of (for example) #$C0, then decrements this value every 60th of a second, until it's 0. While the counter is non-zero, the character is invincible. To make a cheat, you can thus search for a steadily decrementing counter right after your character gets hit, and make a cheat that freezes the value at what it was set at. If the character flashes while he is invincible, and when you freeze the value, the character disappears, try a different value (one less, for example).
2) Have a variable somewhere that is 0 if vulnerable, 1 if invincible (or vice-versa) that is toggled by the above type of countdown timer. Sometimes if you find the timer variable and freeze it, but the character still gets hit, you need to hunt for a value that is 0 when the character vulnerable, and 1 otherwise, and freeze it at 1.
This works for almost any game system.