9Panzer
Well-known member
Okay so I've been trying to setup the input scripts to disable player inputs while in certain action states. I figured out that these lines of code in the movement Scripts controlled the Injury inputs:
So I tried doubling it with a different CMP # which I figured out was the Action states.
This worked perfectly, but when I tried adding a 3rd set for CMP #$04 it gives me a "Routines\BASE_4_5\System\Vectors.asm(1): Value out of range."
Any suggestions?
TXA
STA temp ;; assumes the object we want to move is in x.
GetActionStep temp
CMP #$07
BNE +notHurt
RTS
+notHurt
So I tried doubling it with a different CMP # which I figured out was the Action states.
TXA
STA temp ;; assumes the object we want to move is in x.
GetActionStep temp
CMP #$07
BNE +notHurt
RTS
+notHurt
TXA
STA temp ;; assumes the object we want to move is in x.
GetActionStep temp
CMP #$06
BNE +notHurt
RTS
+notHurt
StartMoving temp, #LEFT
TXA
STA temp ;; assumes the object we want to move is in x.
ChangeFacingDirection temp, #FACE_LEFT
RTS
This worked perfectly, but when I tried adding a 3rd set for CMP #$04 it gives me a "Routines\BASE_4_5\System\Vectors.asm(1): Value out of range."
Any suggestions?