crazygrouptrio
Active member
I can't get 8 direction movement to work with both players. Assuming its addressed in code I can't find because it works if I specify "player1_object" instead, but trying to use it for just player 2 or both players gets nothing.
Here's the code I'm using that's not working:
Here's the code I'm using that's not working:
Code:
; load the playerX_object (current inputs):
JSR PlayerXobjectInputs
;; if on a cutscene:
LDA screenFlags
AND #%00000010
BEQ +
RTS
+
LDA isPaused
BEQ +
RTS
+
;;;; Start moving Down+Left ;;;;
;LDX player1_object
GetCurrentActionType playerX_object
CMP #$02 ;; if the state is invincible
BEQ ++ ; skip movement if attacking
CMP #$03
BEQ ++ ;skip if we are casting spell
CMP #$01
BEQ + ;; if the action type already equals 1, jump forward
ChangeObjectState #$01, #$04
+
;;;;;; Then, we will begin moving.
StartMoving playerX_object, MOVE_LEFT_DOWN
;;;;;; Lastly, we will change the facing direction.
FaceDirection playerX_object, #%00000111
++
RTS