warpedpipe
New member
When my player health is 0, I warp to a "lose" screen at x6 and y14. After the player warps there then it strangely warps to another screen and horizontally moves thru multiple screens on its own. Any suggestions on how to fix this?
Code:
+playerHealthIsZero:
LDA continueMap
STA warpMap
LDA continueX
STA newX
LDA continueY
STA newY
LDA continueScreen
STA warpToScreen
STA camScreen
LDA myMaxHealth
STA myHealth
WarpToScreen warpToMap, #$E6, #$02
;; arg0 = warp to map. 0= map1. 1= map2.
;; arg1 = screen to warp to.
;; arg2 = screen transition type - most likely use 1 here.
;; 1 = warp, where it observes the warp in position for the player.
+skipHurt
Last edited: