Language…
4 users online: Drakel, drkrdnk, MarsAmPear, signature_steve - Guests: 61 - Bots: 111
Users: 70,591 (2,469 active)
Latest user: Amoru

Crash Bandicoot - "Nitro Crate" Block (Exploding Block)

SMW Blocks → Crash Bandicoot - "Nitro Crate" Block (Exploding Block)

Submission Details

Name: Crash Bandicoot - "Nitro Crate" Block (Exploding Block)
Author: TheXander
Added:
Act As: 130
Includes GFX: Yes
Description: This block is a custom block that explode if there contact with: Mario, Sprites, Fireballs & Cape contact! When the block detects any of thoses contacts, he will erase himself, makes an particle/smoke effect and makes instantly the explosion from the Vanilla Original SMW Sprite 0D: Bob-omb.

This custom block come with some defines/options that you can change freely.

More details in the Readme file!

Requested by bandicoot
Tags: exploding exploding block explosion lorom sa-1
Comments: 6 (jump to comments)
Rating:
0.0 (0 ratings)
No rating
Download 3.75 KiB | 116 downloads

Screenshots

Comments (6)

 RussianMan Link
Tested With:
-Lunar Magic 3.40
-GPS 1.4.4
-bsnes v115
-SA-1 1.40

Could've been optimized in terms of space usage, but otherwise, it's pretty straightforward. I did put PHX and PLX in the sprite version of the explosion code to fix potential inconsistencies for sprites interacting with blocks.
 Daizo Dee Von Link
The added PHX and PLX you put in skips a PLX if all sprite slots are filled up causing a crash. There needs to be a branch to the final PLX from the sprite spawn check before it can return.

So for those using the block, change
Code
   	LDA #$0D                	; turn block into a Bob-omb
	CLC
	%spawn_sprite()
	BCS Return
	%move_spawn_relative()		; move sprite position relative to the block
        LDA #$08                	; sprite is alive
        STA !14C8,x
        LDA #$01                	; explode immediately
        STA !1534,x
        LDA #$40
        STA !1540,x
        LDA #$1B                	; invincible to star/cape/fire
        STA !167A,x
PLX

Return:
	RTL
to
Code
   	LDA #$0D                	; turn block into a Bob-omb
	CLC
	%spawn_sprite()
	BCS Return2
	%move_spawn_relative()		; move sprite position relative to the block
        LDA #$08                	; sprite is alive
        STA !14C8,x
        LDA #$01                	; explode immediately
        STA !1534,x
        LDA #$40
        STA !1540,x
        LDA #$1B                	; invincible to star/cape/fire
        STA !167A,x
Return2:
PLX

Return:
	RTL
 RussianMan Link
went ahead and edited the block, sorry for that egregious error.
bandicoot Link
This block was more useful than I anticipated, I was able to create lots of cool scenarios and puzzles using this on my newest hack The Adventures of Bucken Berry & Ala-Gold
Thank you for making it.
TheXander Author Link
No probs bandicoot (also, waiting your next hack because yours works are amazing and really I've played all yours hacks actually #smrpg{gdi})
zAce08xZ Link
Cool #smw{:TUP:}