Bucket Mouse
Active member
I haven't heard of a problem with platformers warping to the underworld screens. Are you using custom code here?
LDA gamepad
AND #%00010000
CMP #%00010000
BEQ++
RTS
++
;;;WARP TO SCREEN
;; the screen to warp to is set in screen info
CPX player1_object
BNE skipWarp
LDA #%11000000
;7 = active
;6 = 8 or 16 px tiles
ORA #GS_MainGame
ORA #%01000000
STA update_screen
LDA #%00000001
STA update_screen_details ;; load from map 1
LDA warpToScreen
STA newScreen
STA currentScreen
LSR
LSR
LSR
LSR
LSR
STA screenBank
LDA #$02
STA screen_transition_type
LDA #$01
STA tile_solidity
LDA #$00
STA gameHandler
skipWarp:
LDA #$01
;STA tile_solidity
LDA #$00
STA textaction
; cpx player1_object
; BNE dontDoWarp_tile
; LDA warpMap
; sta currentMap
; clc
; ADC #$01
; STA temp
; GoToScreen warpToScreen, temp
; dontDoWarp_tile
MACRO GoToScreen arg0, arg1, arg2
; arg 0 = screen to warp to.
; arg 1 = map
; arg 2 = transition type
LDA arg0
STA temp2
LDA arg1
STA temp3
LDA arg2
STA temp1
JSR HandleGoToScreen
ENDM
0FC34 HandleGoToScreen:
LDA temp2
STA Object_scroll,x
STA currentNametable
STA newScreen
STA currentScreen ;currentScreen
STA xScroll_hi
STA nt_hold
LDA Object_scroll,x
AND #%00000001
STA showingNametable
LDA newX
STA Object_x_hi,x
STA xHold_hi
LDA temp1
STA screen_transition_type
LDA temp3
;LDA warpMap
STA update_screen_details
;LDA #$01
;STA tile_solidity
LDA #$00
STA gameHandler
LDA #%11000000
;7 = active
;6 = 8 or 16 px tiles
ORA #GS_MainGame
ORA #%01000000
STA update_screen
LDA #$00
STA xScroll
doneWithWarpToScreen: