Mega Man style ladders (4.5.9 platform module) ***UPDATED***

dale_coop

Moderator
Staff member
Could be simplified:
Code:
;;; Copy the ladders X position to the player (here)
LDA tileX
AND #%11110000
STA ladderX
SEC
SBC #4 ;;; Sprite X offset
STA Object_x_hi,x
 

baardbi

Well-known member
Could be simplified:
Code:
;;; Copy the ladders X position to the player (here)
LDA tileX
AND #%11110000
STA ladderX
SEC
SBC #4 ;;; Sprite X offset
STA Object_x_hi,x
Very good point. A much better solution. I'll update the tutorial with this fix.
 
Top Bottom