Views: 844,152,544
16 users online: 3dsalmon,  Anorakun,  Atari2.0,  BeeKaaaay, BlueZy, FrozenHydra, GangsterJerby, Kusrry, Mellonpizza,  Nameless, plasticdog6, PumpkinKing, Qwerty13x, Ralshi02,  Samantha, tjb0607 - Guests: 49 - Bots: 94 Users: 46,398 (2,772 active)
Latest: ItsGoitsu
Tip: When making your overworld, mix the terrain up! Angled land and multiple colors looks much more interesting than square land and plain colors.Not logged in.
Any way to add ExAnimation to a block when Mario interacts with it?
Forum Index - SMW Hacking - SMW Hacking Help - Any way to add ExAnimation to a block when Mario interacts with it?
Pages: « 1 »
Hi! I looked through this guide on ExAnimation and unfortunately couldn't find much on block animation. I designed the Launch Pad block to look like a springboard. I designed two other phases for the block when it's "jumped" on.

Is there any way to make this block go to a different Map16 tile when Mario makes contact with the top of it? I know that the behavior of this block launches you across screens very fast so you'd barely see it, but I'd like to try and do this for aesthetic reasons, as it bothers me seeing it behave entirely like a cement block.

Since it launches you immediately, concern over the block switching to anything like an air tile isn't necessary, unlike something like a stationary P-switch

Easiest way would be to use a one shot trigger. One shots start up once their corresponding flag is set, go through their animation sequence, and then stop once they reach the last frame. To fire it, just set the bit in $7FC0F8-$7FC0FB corresponding to the trigger you pick (bit 0 of $7FC0F8 is trigger 0, bit 1 is trigger 1, etc.).

Alternatively, you can use a manual trigger and directly control the animation while Mario is touching the block. In that case, $7FC070 + trigger ID holds the current frame for the animation.

HOWEVER, this all said, there is a big drawback to using ExAnimation for this purpose. That issue is that the ExAnimation will apply to all instances of the tile at the same time. In other words, if you have two of these launch blocks on the same screen, then bouncing on one will show the bounce animation for both, even if you didn't touch the second block.

The solution that SMW uses for this is bounce sprites to handle the animation. These basically just replace the block temporarily to handle the animation; this way, it only handles to the particular block spawning the bounce sprite. You can add custom ones via this patch, though it will take a bit of work to set up.

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Alternatively, UberASM or a custom sprite allows you to change the currently activated block's graphics (and only the current block's tilemap).

Okay, my layout looks ugly.
Thank you both for the replies! Aside from the patch, are there any tutorials on where I can begin with this? I'm no advanced coder but I can eventually map things out through tutorials.
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Any way to add ExAnimation to a block when Mario interacts with it?

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


Follow Us On

  • YouTube
  • Twitch
  • Twitter


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