JonnyManjiro
Member
I starting a project in which, after pressing start, the game generates a random map and places the player on it.
Then, by pressing start and proceeding to a sub-screen, you can confirm the map and where you are on it.
This all works mostly as intended so far, but as a side effect of adding the code that draws the map, I sometimes get unwanted background tiles when loading screens, like the one in the red rectangle in the screen shot below, and notably always the same tiles in the same locations, and always on edges.
Here's my code is set up:
When you press start to go to the map screen, on the map screen there is an invisible monster with action code that ticks up a variable called DrawMap and also places the blinking sprite to indicate the player's location on the map.
At the beginning of the NMI, there is a check to see if DrawMap is non-negative. If it is, it executes the code to draw the map. If it is 0, it skips the code and proceeds with the NMI code.
If I comment out all of my added NMI code, the unwanted tiles do not appear,
Is there a better place or way to place my code for drawing the map?
Then, by pressing start and proceeding to a sub-screen, you can confirm the map and where you are on it.
This all works mostly as intended so far, but as a side effect of adding the code that draws the map, I sometimes get unwanted background tiles when loading screens, like the one in the red rectangle in the screen shot below, and notably always the same tiles in the same locations, and always on edges.
Here's my code is set up:
When you press start to go to the map screen, on the map screen there is an invisible monster with action code that ticks up a variable called DrawMap and also places the blinking sprite to indicate the player's location on the map.
At the beginning of the NMI, there is a check to see if DrawMap is non-negative. If it is, it executes the code to draw the map. If it is 0, it skips the code and proceeds with the NMI code.
If I comment out all of my added NMI code, the unwanted tiles do not appear,
Is there a better place or way to place my code for drawing the map?