Talk:Mortal Kombat PTC Edition/@comment-50.93.176.50-20140504225928/@comment-24273571-20140505232145

Under "Individual Buttons", each character has a bunch of IF statements that sends the program to a subroutine based on the button pressed. GSZ is Good Sub-Zero. Good is the player and E for enemy is the computer. There are "general moves" for moves common to all characters and "individual moves" specific to one character. I did combine some character in the "individual moves" section. Edit the code within these subroutines. Note: some subroutines set flags for moving objects, jumps, or freezing. There are is a separate subroutine that is called all the time from @Good or @Game based on the flags set. Damage is set in each move. ESCR is the enemy score. GSCR is the good guy score. Subtract from these and call @SCORE to update the damage. Ill leave SPHITSP or SPHITRC to you. That is very complicated. Lets say I use an invisible sprite offset from X,Y and an imaginary rectangle using SPHITRC. I think its sprite 8 for the good guys attack.