Warp brings me to the wrong screen (Solved)

dale_coop

Moderator
Staff member
Ok so if I understand well your screen 1,15 is the screen you want to warp to (and inside that screen, you want your player appears at the position: 7,13).
Is that correct ?
 
Okay i just set warps to my game and it warped me to wrong screen too. Think the script for warp was set to win game script and win game to warp for me. Okay i fixed my warp and win screen script but now I'm being sent to random screen. Think Warp script may be broken. the script is way simpler than beta warp script.
 

Attachments

  • Warp (correct).png
    Warp (correct).png
    43.9 KB · Views: 3,920

TonyTheMaker

New member
dale_coop said:
Ok so if I understand well your screen 1,15 is the screen you want to warp to (and inside that screen, you want your player appears at the position: 7,13).
Is that correct ?

That is correct
 

dale_coop

Moderator
Staff member
OK... I think your Tile 03 should be WinGame, and your Tile 04 the Warp one (because in your Project labels, it might be by default in that order: Null Walkable, Solid, Death, Win, Warp, ...)
Could you try ?
 
Found problem
in warp script it says #$01 it should be #$07


cpx player1_object
BNE dontDoWarp_tile
LDA warpMap
adc #$07
STA temp
GoToScreen warpToScreen, temp

dontDoWarp_tile
 

dale_coop

Moderator
Staff member
You right, dark_crow_66. Thanks again!
I didn't check the warp script. But there is a mistake here too.
:S
 

TonyTheMaker

New member
dark_crow_66 said:
Found problem
in warp script it says #$01 it should be #$07


cpx player1_object
BNE dontDoWarp_tile
LDA warpMap
adc #$07
STA temp
GoToScreen warpToScreen, temp

dontDoWarp_tile

Thanks its working now
 

jim

Member
Hi everyone I can't seem to get the warp tile to work for me it takes me to an unknown screen. I changed adc #$07 to adc #$01 but it didn't fix the problem for me.
Warp form screen
https://drive.google.com/open?id=1kAHPgp0_Tmm3XAtaazr__ewPXInXzBub

Warp to screen
https://drive.google.com/open?id=1A8ww8ja-lf0zbHyMhhm6cw_3zsC9lVDq

Code before the change
cpx player1_object
BNE dontDoWarp_tile
LDA warpMap
adc #$01
STA temp
GoToScreen warpToScreen, temp

dontDoWarp_tile

Code after the change
cpx player1_object
BNE dontDoWarp_tile
LDA warpMap
adc #$07
STA temp
GoToScreen warpToScreen, temp

dontDoWarp_tile

This is the screen I keep getting
https://drive.google.com/open?id=1PsECWfdvJmz_wszdgbjxfkMZbemPn62q
 
jim said:
Hi everyone I can't seem to get the warp tile to work for me it takes me to an unknown screen. I changed adc #$07 to adc #$01 but it didn't fix the problem for me.
Warp form screen
https://drive.google.com/open?id=1kAHPgp0_Tmm3XAtaazr__ewPXInXzBub

Warp to screen
https://drive.google.com/open?id=1A8ww8ja-lf0zbHyMhhm6cw_3zsC9lVDq

Code before the change
cpx player1_object
BNE dontDoWarp_tile
LDA warpMap
adc #$01
STA temp
GoToScreen warpToScreen, temp

dontDoWarp_tile

Code after the change
cpx player1_object
BNE dontDoWarp_tile
LDA warpMap
adc #$07
STA temp
GoToScreen warpToScreen, temp

dontDoWarp_tile

This is the screen I keep getting
https://drive.google.com/open?id=1PsECWfdvJmz_wszdgbjxfkMZbemPn62q

If you want overworld check "warp to underworld" that should do the trick.
It's reverse from what you'd think.
 
Top Bottom