Banner
Views: 784,474,079
Time:
17 users online:  bebn legg,  Deeke, ECS.98, GbreezeSunset, Hayashi Neru, Israelcv1234,  Jonny, lx5, Maxodex,  Ninja Boy, Popermen,  S.N.N., snaker96, Teows,  Thomas, Xyspade, Yung Gotenks - Guests: 26 - Bots: 200 Users: 41,026 (1,549 active)
Latest: DVGames
Tip: You can use the SMW Customizer to edit tons of misc. features in SMW, including the speed of Bullet Bills, how many points a 3-UP moon gives you, and more!Not logged in.
Make thwomps hurt yoshi
Forum Index - SMW Hacking - SMW Hacking Help - Make thwomps hurt yoshi
Pages: « 1 »
Is there a way to have thwomps trigger yoshis hurt and run routine? Not sure how to go about doing it.

--------------------
I used to put Mario figures in the pipes of my basement to send them on adventures. Plumber dug em out 27 years later. Mission complete I'd say.


...Don't they already do that?

For sprites which don't, though, it's probably because the sprite is calling the hurt-Mario routine ($00F5B9) directly, which doesn't handle the case where Mario is riding Yoshi, instead of using the standard Mario-sprite interaction routine ($01A7DC). A solution without calling that routine instead would be to manually handle the Yoshi interaction; you can see the code at $01F70E through $01F748 for how the original game handles it.

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Originally posted by Thomas
...Don't they already do that?

For sprites which don't, though, it's probably because the sprite is calling the hurt-Mario routine ($00F5B9) directly, which doesn't handle the case where Mario is riding Yoshi, instead of using the standard Mario-sprite interaction routine ($01A7DC). A solution without calling that routine instead would be to manually handle the Yoshi interaction; you can see the code at $01F70E through $01F748 for how the original game handles it.

Once again, I'll have to correct you: Mario-sprite interaction only applies when you jump but the hurt routine is disabled when riding Yoshi. Instead, it's Yoshi himself who handles his interaction with sprites.

Think of the reason why Banzai Bills can't hurt Mario and Yoshi if it's flies one block above the ground and Mario and Yoshi stand right below it or why chainsaws can't hurt Mario at all if he rides Yoshi.

--------------------
Okay, my layout looks ugly.
Alright, so what do I do? I have a custom thwomp in a forest level and it wont hurt you at all if you are on Yoshi. I tried to add in yoshis hurt routine but it didnt work

https://dl.smwcentral.net/17726/Mad%20Thwomp.zip

--------------------
I used to put Mario figures in the pipes of my basement to send them on adventures. Plumber dug em out 27 years later. Mission complete I'd say.


Seems to be working fine for me. Have you potentially applied any other patches that could affect things?


Also, for what it's worth @ MFG, I was just intentionally oversimplifying a bit. When I said "handles the case" I just meant it already assumes interaction will also be occurring between Yoshi and the sprite in question (which in most cases is true, except for Big Mario's head extending a little out of the hitbox). Calling $00F5B9 directly instead however is typically the cause of this issue, as seen with cases like the Dino Rhino's flames, Fishin' Boo's fire, or Mega Mole. Hence, your options are to either manually skip over the death call when riding Yoshi (which $01A7DC already handles), or, as necessary in most cases due to using a manually-sized hitbox, rewrite the interaction that should occur.

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
My interpretation of the first post was that it refers to Yoshi jumping on a Thwomp, which acts like a spin jump but shouldn't. Is that what you meant? It's probably worth clarifying.

--------------------


 
Nah, the issue is that if mario touches it, he gets hurt. If on yoshi, nothing happens at all when the thwomp falls on the player.

--------------------
I used to put Mario figures in the pipes of my basement to send them on adventures. Plumber dug em out 27 years later. Mission complete I'd say.
I'm confused as well. I've never had thwomps 'ignore' Mario when he is riding Yoshi? When I've been on Yoshi, and a thwomp comes down, Mario gets iframes and Yoshi takes off:


Are you perhaps wanting Yoshi to be 'activated' when he is under a thwomp without Mario on him? Like this:
Hey Bensalot, do you think you could post a video of what you’re saying (like above), or maybe give a more precise explanation of what’s happening? Because I can’t figure it out either #ab{>_>}

--------------------
Science teachers are too afraid to teach their students about the element of surprise.

Believe it or not, I actually am (attempting to) work on a hack. Just very slowly.
Obviously I changed the graphics but these are the thwomps im using.




--------------------
I used to put Mario figures in the pipes of my basement to send them on adventures. Plumber dug em out 27 years later. Mission complete I'd say.


Well, that's a different Thwomp than the one you linked earlier. Send us the source code for that one.

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
My bad, I sent that when I was at work. Thought it was the one I used. Its this one

https://www.smwcentral.net/?p=section&a=details&id=16354

--------------------
I used to put Mario figures in the pipes of my basement to send them on adventures. Plumber dug em out 27 years later. Mission complete I'd say.


Still working fine with Yoshi for me.

Again, have you applied anything that might be affecting this interaction? Are you sure you have that version of the sprite?

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Ok, realized what the problem might be, I didn't notice this but pixi isn't inserting new sprites properly anymore. Any of the new stuff I add just gives me a pink koopa and the sprites I'm trying to replace don't get overwritten so none of the changes I am making are applying. I read something about how how asar soft locks this but I cant figure out what exaxtly I am supposed to type into the command line to get pixi to work.

--------------------
I used to put Mario figures in the pipes of my basement to send them on adventures. Plumber dug em out 27 years later. Mission complete I'd say.
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Make thwomps hurt yoshi

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

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


Total queries: 7

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented