Banner
Views: 240,540,112
Time: 2013-06-19 08:25:37 AM
14 users online: Everest, o grishnax, K1ngHacks, Kazeshin, Koopster, o Ladida, levelengine, Lui37, MarioFanGamer659, Nickel, notgoodwithusernames, o ShadowPhoenix, tatanga, Vinnyboiler - Guests: 18 - Bots: 26Users: 23,082 (1,325 active)
Latest: JuanK Paniagua
Tip: Verify your ROM is unedited by using ROMclean.
Homing Sprite code
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Homing Sprite code
Pages: « 1 »
What code used when sprite follow mario??
(Assuming you have SUB_HORZ_POS in your sprite's .asm file)

JSR SUB_HORZ_POS
TYA
STA $157C,x
Last edited on 2010-02-08 05:09:40 AM by Nesquik Bunny.
Quote
JSR SUB_HORZ_POS
TYA
STA $157C,x


That basically updates the direction to face mario all the time (as long as it's in the MAIN routine), you can just set a speed. Note: get SUB_HORZ_POS from another sprite.

EDIT: Curse my slow typing!
Last edited on 2010-02-08 05:12:07 AM by Ixtab.
Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Homing Sprite code

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: 27

Menu