In its current state, the game works fine.
If I add in a line of code at the beginning of the game to modify one particular memory address (a variable), the game "freezes."
Code: Select all
ld a,0
ld (BOB_CASTING),a
If I replace that line of code with one that modifies any other memory address (a different variable, for example), the outcome is the same... still freezes the game when you run it.
Code: Select all
ld a,0
ld (BOB_TALKING),a
Taking that into consideration, I changed the line of code in the start of the program to read:
Code: Select all
ld a,205
la (BOB_CASTING),a
If I write a piece of code to modify that variable somewhere else in the game (on ALPHA keypress, for example), the game works just fine, even after (BOB_CASTING) is set to 0.
I have checked and re-checked to make sure that no variables are overwriting one another. That's not the problem.
I have also checked every one of my bcall(_getkey) statements, since the "freezing" seems to be stuck in some kind of getkey loop. None of them even get accessed until certain keys are pressed... so I don't think that is the problem either.
Does anyone have any idea what is going on? I am totally confused.
Anyone interested in helping, please IM me. If you can't figure out the problem from the description, I will be glad to send you the source code.
MSN: L4E_wakamolking@hotmail.com
AIM: TheMaskedTortuga