Banner
The Old-School Level Design Contest ends in
9 DAYS, 19 HOURS, 19 MINUTES AND 7 SECONDS
Views: 892,300,512
Time:
17 users online: AmazingChest, AppleBoy54321, BuckeyeB_06, Caracc, chickaDEE Magazine, Daizo Dee Von, Erik_The_Swift, Hat Kid, K.T.B., ModernKiwi,  NopeContest, simon.caio, Sixcorby, StackDino,  Tahixham, TDWarrior, The_Uber_Camper - Guests: 51 - Bots: 119 Users: 50,064 (2,327 active)
Latest: gratianne
Tip: Press F2 on the level editor to see subscreen boundaries. This will help you avoid glitching dragon coins by putting them on the subscreen boundaries.
Not logged in.
Turn block bridge edge graphics
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Turn block bridge edge graphics
Pages: « 1 » Link
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...
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Turn block bridge edge graphics

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2021 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks