Banner
Views: 236,146,561
Time: 2013-05-21 10:24:25 AM
16 users online: o AnybodyAgrees, Eevee, everest700, FlamingRok, o Hadron, K1ngHacks, Kazeshin, Kenny2412, MaxodeX, metalgearhunter, mju90, Neidave, Pokeymeister80, Purple Rex, o Undy, willian125677 - Guests: 24 - Bots: 14Users: 22,857 (1,295 active)
Latest: Precious Hippocrates
Tip: Don't place Yoshi coins near a goal post because they keep glowing when a level fades out.
Carryable sprite pushing Mario backwards? [Solved]
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Carryable sprite pushing Mario backwards? [Solved]
Pages: « 1 »
I was able to make mikeyk's Ice Block kickable by using CFG Editor to make it act like a Throw Block sprite and tweaking it from there, but I'm having an odd problem with it. A Throw Block sprite is created inside the Ice Block, and seems to be slightly to the right of it. It's carryable and kickable and works almost perfectly, but it pushes Mario backwards about every half a second while he's holding it, and I don't understand why. It seems to be drawing a Throw Block behind the sprite instead of just acting like one.

The ASM code I'm using is the Ice Block ASM included with Sprite Tool, and an edited version of Jagfillit's Fire and Thunder fireball posted here. My config file is set up as follows:

Code
01 53 90 00 36 21 10 80 00 00 ice_block.asm 0


Video: http://www.youtube.com/watch?v=j9TduWVDLes

Any ideas how to fix this? I've tried the suggestions from this thread but either they didn't work or I've put the code in the wrong place.
Last edited on 2012-06-23 08:11:37 PM by MrFwibbles.
The sprite calls the Invisible Solid Block routine (used by the info box, etc.). In addition, the sprite never checks for $14C8,x anywhere in the (small amount of) code in the ASM file to allow this possibility.

Find:
Code
JSL InvisBlkMainRt


..And replace with:
Code
LDA $14C8,x CMP #$08 BNE $04 JSL InvisBlkMainRt

This will make it so only when the sprite is in a normal status will it be able to be solid, rather than being solid during the state in which it is being carried, kicked, killed, etc.
Thanks, but it says the code didn't assemble correctly. It's that BNE $04 line, if I edit it to use a label then it kind of works but I can't tell where it's supposed to be branching to...
It's fixed to branch to directly after the JSL (i.e. skip four bytes). I'm not sure why you'd be getting assembly errors, but if labels work, then put one right after the JSL.
Oh right. I forgot that TRASM doesn't allow that. Try this:

Code
LDA $14C8,x CMP #$08 BNE skipsolid JSL InvisBlkMainRt skipsolid:
Awesome, it's working perfectly now. Thanks for the help!
Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Carryable sprite pushing Mario backwards? [Solved]

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

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 29

Menu