Banner
Views: 829,369,007
Time:
9 users online: AnasMario130, Green Jerry, IanBoy, LOLRyan2006 Mario Fan, Luks, Natshirt, orka-bln, qantuum, RAFAEL_M_C_ - Guests: 46 - Bots: 93 Users: 44,461 (2,516 active)
Latest: marc1999
Tip: Try sketching out ideas for overworlds and levels. Even if they don't manage to fit into Lunar Magic completely, at least you have a base to work from, instead of doing it all from scratch.Not logged in.
Question about egg-plants
Forum Index - Non-SMW Hacking - Yoshi's Island Hacking - Question about egg-plants
Pages: « 1 »
In one hack I saw an egg-plant spitting flashing eggs. Not sure if SPASM was back then. Now that we have SPASM, is there a way to make the same egg-plant spit yellow or red eggs?

--------------------
Putting my YI hack on hold.
It was done via hex edit presumably. I haven't put this in the Hex Edit Repository because it hasn't been fully tested yet, but you're welcome to try I guess:

Code
org $0781B8
db $25,$00	; change what the Egg Plant shoots (sprite F4 on X=0)

org $0782F9
db $63,$01	; change what the Needlenose Plant shoots (sprite F4 on X=1)

EDIT: these values should also be edited:

Code
org $078250	; change what the Egg Plant shoots (sprite F4 on X=0)
db $25,$00	; when you do a ground pound near them.

org $078347	; change what the Needlenose Plant shoots (sprite F4 on X=1)
db $63,$01	; when you do a ground pound near them.


Note that, the second byte is only used if the sprite ID is over 100, so it becomes $01, being the first byte the rest of the sprite ID (that's why, in this case, the Needlenose Plant shoots the sprite 163, which is the Bouncing green Needlenose) You can check sprites' ID via Golden Egg or in this page. It's more than obvious to say this changes are global and that NOT every sprite will work.

(Just as a trivia, you can make Egg Plants shoots themselves LOL)
While that code does work on an original ROM, if I use it on my edited ROM, the game crashes, but I can use that code of yours differently.
Edit: I have another problem. If I ground pound near an egg-plant, it spits only green eggs. Any help?

--------------------
Putting my YI hack on hold.
Originally posted by Rykon-V73
I have another problem. If I ground pound near an egg-plant, it spits only green eggs. Any help?

Maybe I'm late, but I decided to look more into this issue and I think I got the solution. It seems that the game tracks another part of code to determine which sprite shoots the Egg Plant and the Needlenose Plant when you do a ground pound near them (making them shoots faster). The adresses themselves are:

Code
org $078250	; change what the Egg Plant shoots (sprite F4 on X=0)
db $25,$00	; when you do a ground pound near them.

org $078347	; change what the Needlenose Plant shoots (sprite F4 on X=1)
db $63,$01	; when you do a ground pound near them.

Of course, the values should be the same for the normal and the fast adresses, in order to prevent unintended bugs and stuff.
That does work! Thanks Shiny Ninetales! Now I can add this to a thing specific to C3. I specified in the .asm file to credit you.

--------------------
Putting my YI hack on hold.
Pages: « 1 »
Forum Index - Non-SMW Hacking - Yoshi's Island Hacking - Question about egg-plants

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

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


Total queries: 14

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

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