[4.1] Warp to screen not working properly.

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.
 

DanielT1985

Member
dale_coop said:
...correctly set ?

Oooh wait the Warp In Screen needs to be set on the screen I wanna teleport in! I thought it was just in the same setting as the Warp Out Screen. So uhh thanks for your help. You've been very helpful lately, and I can't thank you or any of the members on the forums enough for that.
 

DanielT1985

Member
dale_coop said:
...correctly set ?

So now I'm having exactly one more problem before I leave you alone. The AI warp tile is messing up and when it teleports me, my character phases through all of the solids. IDK if you already dealt with this before, in which case this would be easy for you, but I don't think this has happened to anyone before. I tried copying and pasting the exact warp to screen asm you gave me, yet it still gives me the same problem.
 

dale_coop

Moderator
Staff member
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.
 

DanielT1985

Member
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.

That's what I did. Still giving me that problem. It's kinda disturbing.
 

dale_coop

Moderator
Staff member
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 );
 

DanielT1985

Member
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 );

Here's the screen I wanna teleport to: https://bit.ly/2Hjsnqc

Here's its collisions: https://bit.ly/2H8psRM

Here's the AI Warp Code that's just your fixed warp tile code:

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
 

dale_coop

Moderator
Staff member
Not sure what causes the issue, here...
Try commenting out the "STA loadObjectFlag" line:

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
 

DanielT1985

Member
dale_coop said:
And what about the screen infos of the Screen where the warp is...?

Here's the screen for that: https://bit.ly/2Us0obu

I was trying to make an artificial Course Clear screen that transitions the player from one level to the other. And I used an invisible enemy that warps the player shortly after a "Course Clear" song ends.

Here's the exported .Monster file for that specific enemy. https://drive.google.com/open?id=1KL8ytXVmdXJuzKs2zvEvTrz-QE4vf4t9 (The tiles might be weird for you, but this is due to my sprite sheet layout.)
 

DanielT1985

Member
If it can't get fixed, I could send you the GameEngineData, GraphicAssets and Project file if you can't seem to find the issue.
 

dale_coop

Moderator
Staff member
Yep... would make it ay easier ;) You right. Please send me a zip (your project MST file, the GameEngineData and GraphicAssets folders) :)
 

DanielT1985

Member
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) :)

Alright, here ya go. I'm very happy that you're willing to do this for me. It means a lot, honestly. https://drive.google.com/open?id=1dAAn8SbZEbPnGkcaXKKldbiwmBzuvboU
 

dale_coop

Moderator
Staff member
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
 

DanielT1985

Member
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

Oh my god it works!! Thank you so much for this!!
 
Top Bottom