Banner
Views: 235,767,028
Time: 2013-05-18 01:39:44 PM
27 users online: cyphermur9t, Daizo Dee Von, o Doopy Buckride, eXcavator, Falconpunch, Fireblast124, Ginyu AL, GreenHammerBro, Kenny, Koopster, Lightvayne, LimeMaster92, Lithuanian Dude, Magiluigi, mzuenni, Pixels, RednGreen, Reggie, Rextep, Rockythetigre, saske, ShadowFire, o ShadowPhoenix, SilverDeoxys563, StinNoO, WhiteYoshiEgg, yoshicookiezeus - Guests: 26 - Bots: 15Users: 22,835 (1,284 active)
Latest: joerut00000
Tip: Read all of the tips by looking here.
Explosion code for sprite and how insert this...
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Explosion code for sprite and how insert this...
Pages: « 1 »
Anybody know the bob-omb explosion code and the place for insert the code for sprite??
This code should be what you need:

Code
Explode: LDA #$0D ;/ STA $9E,x ;\ Sprite = Bob-omb. LDA #$08 ;/ STA $14C8,x ;\ Set status for new sprite. JSL $07F7D2 ;/ Reset sprite tables (sprite becomes bob-omb).. LDA #$01 ;\ .. and flag explosion status. STA $1534,x ;/ LDA #$40 ;\ Time for explosion. STA $1540,x LDA #$09 ;\ STA $1DFC ;/ Sound effect. LDA #$1B STA $167A,x RTS


Just place it wherever you want the sprite to explode. Or you could call the routine using JSR Explode.
Quote

LDA #$01 ; State to load
STA $14C8,x
LDA #$74 ; Sprite number
STA $9E,x
JSL $07F7D2


Basically that. Change the sprite number to that of the bob-omb and the state to that of exploding, which I think is #$08.

EDIT: ninji'd
Last edited on 2010-02-04 04:33:09 AM by Ixtab.
And the code when is contect with solid object??
LDA $1588,x
BNE NotTouchingAnything

*this code runs when the sprite is touching something solid*

NotTouchingAnything:
I have read this thread, but i don`t know...

which is the Bob-Omb Explosion routine, without insert it in a sprite?

Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Explosion code for sprite and how insert this...

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