[SOLVED] WarpToScreen Wont Stay on Lose Screen - MetroidVania 4.5.9

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

1710194608156.png

1710197149299.png

SkyBoundDeath.gif
 
Last edited:

warpedpipe

New member
For now, I put solids where the player is spawned but I would like to know why it is warping to that location.

1710198657725.png
 
Top Bottom