Bucket Mouse
Active member
In the current build of NESMaker, you can only set one warp for each screen. Recently Joe defied this with his Troll Burner Xmas release on Facebook that uses a map screen with four different warp points.
I made a comment assuming it would be possible to do this in the new version, and he told me "actually, you can do it in the old version if you're clever."
I'm a bit confused as to what he means. The problem with using a variable is that, at some point, that variable has to be set, or loaded with a new number right before you use it for what you want to do. But the NESMaker code doesn't work that way. What does he mean?
I made a comment assuming it would be possible to do this in the new version, and he told me "actually, you can do it in the old version if you're clever."
The only other way I can think of would be to make a special tile type that specifically redirects to a specific screen -- and that'd be wasteful, since you only get so many tile types. Generally you want to make tiles you can use more than once. What other way is there?
Joe Granato That’s true, but what if you could set some variables per map screen and just use a couple of tile types to direct to wherever those variable for that specific map pointed?
That’s one clever way. You could even get up to 4 by just repurposing the npc string indexes...if string 0 is selected, warp reads that and sends to screen zero.
Or you could make custom tables - on screen 00, there are these four warps...each of the four corresponding warps takes you to what is indexed in that slot for that table..
(And several other potential ways, if you’re clever ;-) )
I'm a bit confused as to what he means. The problem with using a variable is that, at some point, that variable has to be set, or loaded with a new number right before you use it for what you want to do. But the NESMaker code doesn't work that way. What does he mean?