|
|
 |
|
 |
|
Views: 235,767,028 Time: 2013-05-18 01:39:44 PM | 27 users online: cyphermur9t, Daizo Dee Von, Doopy Buckride, eXcavator, Falconpunch, Fireblast124, Ginyu AL, GreenHammerBro, Kenny, Koopster, Lightvayne, LimeMaster92, Lithuanian Dude, Magiluigi, mzuenni, Pixels, RednGreen, Reggie, Rextep, Rockythetigre, saske, ShadowFire, ShadowPhoenix, SilverDeoxys563, StinNoO, WhiteYoshiEgg, yoshicookiezeus - Guests: 26 - Bots: 15 | Users: 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  |
|
|
|
| Posted on 2010-02-04 04:24:35 AM |
Link | Quote |
|
|
Anybody know the bob-omb explosion code and the place for insert the code for sprite??
|
|
| Posted on 2010-02-04 04:28:34 AM |
Link | Quote |
|
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.
|
|
| Posted on 2010-02-04 04:31:43 AM |
Link | Quote |
|
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. |
|
| Posted on 2010-02-28 11:15:28 AM |
Link | Quote |
|
|
And the code when is contect with solid object??
|
|
| Posted on 2010-02-28 12:09:12 PM |
Link | Quote |
|
LDA $1588,x
BNE NotTouchingAnything
*this code runs when the sprite is touching something solid*
NotTouchingAnything:
|
|
| Posted on 2010-03-06 09:35:00 PM |
Link | Quote |
|
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 UsTotal queries: 27
|
|
|
|