Language…
6 users online: anoMaly666,  Atari2.0, cletus_deletus,  Donut, playagmes169, sinseiga - Guests: 232 - Bots: 278
Users: 64,795 (2,375 active)
Latest user: mathew

Turn block bridge edge graphics

I'm using RealLink's turn block bridge disassembly and I want to make the bridge use a different graphic for the leftmost, rightmost and middle tile: ◼◻◻◻◼ ← something like this. I can remap the graphics, but that changes the entire bridge. (I tried to use two bridges, one with the middle, and one with the edge graphics and overlaying them, but it had some timing issues that I couldn't fix).
Is there a way to edit the turn bridge disassembly's *.asm* file to make the edges use different graphics? If yes, how?
At line 336, there's the code that stores the tile number to the OAM table:
Code
CODE_01B77D:                      LDA #!TurnblockGFX                
CODE_01B77F:                      STA !OAM_Tile2,Y          ;second tile from the right
CODE_01B782:                      STA !OAM_Tile4,Y          ;second tile from the left
CODE_01B785:                      STA $0312|!Base2,Y               ;Middle tile
CODE_01B788:                      STA !OAM_Tile3,Y          ;leftmost tile
CODE_01B78B:                      STA !OAM_Tile,Y           ;rightmost tile

which by default just uses the same tile number for all 5 tiles. To use different tiles change it to this:
Code
LDA #!TurnblockGFX1
STA !OAM_Tile,y
LDA #!TurnblockGFX2
STA !OAM_Tile2,y
STA !OAM_Tile4,y
STA $0312|!Base2,y
LDA #!TurnblockGFX3
STA !OAM_Tile3,y

where the GFX2 is for the middle tile, GFX1 is for the right tile and GFX3 for the left one. Then at the top replace
Code
!TurnblockGFX		= $40
with
Code
!TurnblockGFX1		= $XX
!TurnblockGFX2		= $YY
!TurnblockGFX3		= $ZZ

with the values you want.
Yep, it works. At first I had some issues, but guess what? I was just stupid, but it works now. Thanks! But there are still some stuff that are weird...