"Slow" Tile (Adventure Module)

tbizzle

Well-known member
Here is a tile script that slows down the players speed when stepped on. Kinda like walking through mud, quicksand, or high winds!

Code:
pha
CPX player1_object
;BNE notPlayerConvL
LDA Object_h_speed_hi,x
SEC
SBC #$00
STA Object_h_speed_lo,x

LDA Object_v_speed_hi,x
SEC
SBC  #$00
STA Object_v_speed_lo,x
;notPlayerConvL:
;pulling back the acc.
pla
 
Top Bottom