JonnyManjiro
Member
In my game, I have tiles that are solid, but become walkable and change to a blank background after upon collision with a player projectile.
I include the code below in the above tile's code, where #$20 is my blank black background, and #$00 is my walkable tile.
ChangeTileAtCollision #$20, #$00
Normally it works fine; however, if the screen is scrolling during the collision, the tile will become walkable as expected, but the background retains its solid graphics.
The issue doesn't seem to occur on the emulator FCEUmm, but when I use my testing emulator (Mesen) or console, it does, so I'm thinking it's a problem of background graphics not being able to get updated in time. I'm hoping that when I'm getting close to finishing my game, I can delete code I know I'm not using to help improve optimization, but I don't know if that is the best practice or not.
I include the code below in the above tile's code, where #$20 is my blank black background, and #$00 is my walkable tile.
ChangeTileAtCollision #$20, #$00
Normally it works fine; however, if the screen is scrolling during the collision, the tile will become walkable as expected, but the background retains its solid graphics.
The issue doesn't seem to occur on the emulator FCEUmm, but when I use my testing emulator (Mesen) or console, it does, so I'm thinking it's a problem of background graphics not being able to get updated in time. I'm hoping that when I'm getting close to finishing my game, I can delete code I know I'm not using to help improve optimization, but I don't know if that is the best practice or not.