Views: 931,816,054
27 users online:  Alex_X8, arthur4272, bandicoot, Batata Douce,  bebn legg,  brickblock369, CarloSB, Cryses96, detdu, Dippy, Fryinb, Gamet2004, HaruMKT, Ivy,  JamesD28, Julintendo, JupiHornet, Koopster, KungFuFurby, MANGOMILK, Marcozzo Daro, mike_bianchi, NINTENLUIGI, OrangeBronzeDaisy, oyok, Sixcorby,  Tahixham - Guests: 109 - Bots: 170 Users: 52,017 (2,085 active)
Latest: goku86
Tip: Don't just modify the original SMW overworld; start from scratch.
Not logged in.
Help With Editing Graphics Code
Forum Index - SMW Hacking - SMW Hacking Help - Graphics & Related Topics - Help With Editing Graphics Code
Pages: « 1 » Link
Hello. I have practically zero experience with editing ASM files or any sort of coding. All I want to do is change the graphics of the Ghost House "Green Gas Bubble" into something else, but it appears that there is something in the code that makes it so that that sprite's graphics are mirrored vertically and horizontally from the first 4x4 slot in the bin file. This makes it so anything I draw in that slot appears in game as a weird graphic mirrored from the first 4x4 tiles. Could someone point me in the right direction of what to do to the ASM file of the "Green Gas Bubble" so that it does not mirror these slots? Thank you.
To make the huge bubble not flip it's lower half of the graphics vertically, you need to edit the adress $02E382 (the place where the game has the bubble's graphical properties) and change the eight $BB's listed in it into $3B. The easiest way to do so is by making an asm patch that lets you change the values manually, kinda like this:


org $02E382                   			;Loads the properties of the Green Bubble
db $3B,$3B,$3B,$3B,$3B,$3B,$3B,$3B		;Properties of the upper half of the bubble
db $3B,$3B,$3B,$3B,$3B,$3B,$3B,$3B		;Properties of the the lower half of the bubble. 
						;Value was changed from $BB so it no 
						;longer flips vertically

You can copy paste the code into a notepad and save the file with the .asm extension so it becomes a proper patch. Then you grab ASAR, use it to patch it and voila. The bubble no longer flips it's graphics for the lower half.

Now, if you also wanna force the thing to use use the whole 64x64 square where the Big Boo graphics are, then you could also add this bit to the patch below the initial code:

org $02E372                   			;Tilemap of the Green Bubble
db $80,$82,$84,$86,$A0,$A2,$A4,$A6		;Tiles used by the upper half of the bubble
db $C0,$C2,$C4,$C6,$E0,$E2,$E4,$E6		;Tiles used by the lower half of the bubble. 
						;Values have been changed so it loads 
						;the lower half of the Big Boo GFXs.

Do note that you no longer will be able to use both the bubble and the big boos on the same room due to the graphics overlapping, but even then, you can always relocate the bubble's graphics to somewhere else if you so wish.
Thank you so much for explaining this to me!
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - Graphics & Related Topics - Help With Editing Graphics Code

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


Follow Us On

  • YouTube
  • Twitch
  • Twitter


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