Language…
22 users online: bMatSantos, bradcomp, DanMario24YT, DashGamer, Domokun007, eltiolavara9, Green Jerry, hhuxy, lo fang 123, Michel2023, Nayfal, nonamelol1, playagmes169, prisvag, Serena, Shomi,  shovda, SMW Magic, steelsburg, TheXander, Torchkas, Tulip Time Scholarship Games - Guests: 286 - Bots: 350
Users: 64,795 (2,375 active)
Latest user: mathew

Yoshi Berries - How to make them work on any BG?

Hi,

I am trying to use the berries that Yoshi eats for a section in a level and I cannot figure out how to make the berry BG match the current one or be transparent.

I have YYCHR and have found the asset to edit, but what I am more concerned about is when a berry gets eaten it leaves a discolored block behind. How can I avoid this behavior? Is there another asset I need to edit?

Are there any good YYCHR tutorials on making things transparent in SMW?

Any help is appreciated. There are other ways around this, but I really want to use the berries.
The reason is that berries turn into tile 49 when eaten, which is part of the bush object. To make it turn into air (so, just disappear) you can use a hex edit:
Code
org $02BB03
	db $02

org $02D208
	db $02

Note though that this will apply to the entire game.

About the YYCHR question, the first color in each palette row is always treated as transparent, so to make stuff transparent you replace the colors you want to remove with the first color.
Thank you so much, Kevin! This was exactly what I was looking for. It's okay if it affects the whole game. This is the only level I am planning on using the berries in this way, but going and finding each tile and everything is such a pain in YYCHR.

I will keep this edit for later usage too. I think it's handy to note when working with different BGs and should be out there somewhere!