DanielT1985
Member
Seems like every time I use a warp tile, it warps me to 0, 0, then, because of the hud teleporting, goes to 15, 15, and back to 0, 0, again. I have no idea why this occurs or how to fix it.
dale_coop said:Try this fix:
http://nesmakers.com/viewtopic.php?p=10494#p10494
dale_coop said:...correctly set ?
dale_coop said:...correctly set ?
dale_coop said:Yep I think it's just the warp that is not completly correct too. Just copy/paste the "fixed" warp code, it should work too.
dale_coop said:Your screen is set correctly? warp in coord, gravity (or not), some solid tiles,...?
Could you share screenshots of everything?
Share your scripts, too?
Need the context... to find the fix of your problem );
; cpx player1_object
; BNE dontDoWarp_tile
; LDA warpMap
; sta currentMap
; clc
; ADC #$01
; STA temp
; GoToScreen warpToScreen, temp
; dontDoWarp_tile
LDA #$00
STA newGameState
LDA warpMap
sta currentMap
clc
ADC #$01
STA temp
GoToScreen warpToScreen, temp, #$02
LDA #$00
STA playerToSpawn
;; LDX player1_object
;; DeactivateCurrentObject
;; LDA #$01
STA loadObjectFlag
LDA mapPosX
STA newX
LDA mapPosY
STA newY
; cpx player1_object
; BNE dontDoWarp_tile
; LDA warpMap
; sta currentMap
; clc
; ADC #$01
; STA temp
; GoToScreen warpToScreen, temp
; dontDoWarp_tile
LDA #$00
STA newGameState
LDA warpMap
STA currentMap
CLC
ADC #$01
STA temp
GoToScreen warpToScreen, temp, #$02
LDA #$00
STA playerToSpawn
;; LDX player1_object
;; DeactivateCurrentObject
;; LDA #$01
;; STA loadObjectFlag
LDA mapPosX
STA newX
LDA mapPosY
STA newY
dale_coop said:And what about the screen infos of the Screen where the warp is...?
dale_coop said:Yep... would make it ay easier You right. Please send me a zip (your project MST file, the GameEngineData and GraphicAssets folders)
dale_coop said:Yep... would make it ay easier You right. Please send me a zip (your project MST file, the GameEngineData and GraphicAssets folders)
; cpx player1_object
; BNE dontDoWarp_tile
; LDA warpMap
; sta currentMap
; clc
; ADC #$01
; STA temp
; GoToScreen warpToScreen, temp
; dontDoWarp_tile
LDA #$00
STA newGameState
LDA warpMap
STA currentMap
CLC
ADC #$01
STA temp
GoToScreen warpToScreen, temp, #$02
LDA #$00
STA playerToSpawn
LDX player1_object
DeactivateCurrentObject
LDA #$01
STA loadObjectFlag
LDA mapPosX
STA newX
LDA mapPosY
STA newY
dale_coop said:Weird bugs... but I made the warp working, using this warp screen instead:
Code:; cpx player1_object ; BNE dontDoWarp_tile ; LDA warpMap ; sta currentMap ; clc ; ADC #$01 ; STA temp ; GoToScreen warpToScreen, temp ; dontDoWarp_tile LDA #$00 STA newGameState LDA warpMap STA currentMap CLC ADC #$01 STA temp GoToScreen warpToScreen, temp, #$02 LDA #$00 STA playerToSpawn LDX player1_object DeactivateCurrentObject LDA #$01 STA loadObjectFlag LDA mapPosX STA newX LDA mapPosY STA newY