Warp brings me to the wrong screen (Solved)

jim

Member
I added that but it's still doing the same thing.
cpx player1_object
BNE dontDoWarp_tile
LDA warpMap
adc #$07
STA temp
GoToScreen warpToScreen, temp

dontDoWarp_tile:

It takes me to the starting screen after I get that unknown screen. I can do a video if that would help.
 

jim

Member
Here is a video of what it's doing.
https://drive.google.com/file/d/1XK5DqSyfDXgLeivwAfaJclSWzn9N9lMr/view
 
Ok, try putting something on the screen it's supposed to go to, and the same spot in the other map, to see if you can find what screen you're warping to.
 

jim

Member
Thanks, Redherring32 for the help it was me I wasn't setting up the screen warp right I have it working now.
 

chronosv2

New member
I don't know if this was your problem (and I know I wasn't here in time to help out), but I'll leave this here for anyone who happens by in the future:
In programming (and therefore in game making) typically coordinates start at 0, not 1. So screen 5 to the right and 4 down would be X 4 (0 ,1 ,2 ,3 ,4), Y 3 (0, 1, 2, 3).

For people not familiar with computer science/programming this is a common trip-up.
 
Better yet, for anyone that has issues with coordinates, there's 2 numbers in the "Overworld" screen that display the X, and Y position of the current screen your mouse is over.
 

Attachments

  • 1545168814255.png
    1545168814255.png
    512.2 KB · Views: 1,950
Top Bottom