Language…
16 users online: Aurel509, Blizzard Buffalo, BrandonL1372,  Donut,  Erik, fanfan21, hurix, jneen,  Lazy, OEO6, Papangu, Ryrir,  Segment1Zone2, sholmes, TCgamerboy2002, Theoneselected7 - Guests: 99 - Bots: 115
Users: 69,640 (2,518 active)
Latest user: Bmickles

Pot

SMW Sprites → Pot

Submission Details

Name: Pot
Author: wiiqwertyuiop
Added:
Tool: PIXI
Type: Standard
Dynamic: No
Disassembly: No
Includes GFX: Yes
Description: This is a 16x16 pot sprite. Mario can stand on it, push it, and pick it up to move it. When he drops it, it will break and spawn another sprite. It must spawn on a solid tile.

It uses its extra bytes to determine which sprite it should spawn (they can be set in the Add Sprite Manual dialog with the "Extension" field). The first byte (first two digits) determines the sprite number to spawn (get it either from the Add Sprites Window or from PIXI's list.txt). The next digit determines which status the sprite should spawn in (if unsure, use 1). The fourth digit is the extra bit of the sprite to spawn. 0 and 1 spawn a normal sprite with its extra bit clear or set, 2 and 3 spawn a custom sprite with its extra bit clear or set (just like the Extra Bits field from the Add Sprite Manual dialog). For example, extension 8010 would spawn vanilla sprite 80 (a key) in status 1 with its extra bit clear. 0583 would spawn custom sprite 05 in status 8 with its extra bit set. If you set the sprite number to FF, the pot will shatter without spawning anything.

If the extra bit of the pot is set, then it'll randomly leave nothing behind, or spawn one of two sprites. The second sprite is defined in the extension after the first one (in the same format). For example, a pot with its extra bit set and extension 80110582 would either spawn nothing, a key in status 1 with its extra bit set, or custom sprite 05 in status 8 with its extra bit clear.

Check the ASM file for customization options. The included graphics use Mario's palette and come from BlackSabbath's SMB2 tileset.
Tags: breakable lorom pacifist pot sa-1 shatter vase
Comments: 3 (jump to comments)
Rating:
0.0 (0 ratings)
No rating
Download 4.64 KiB | 875 downloads

Screenshots

Comments (3)

 Kevin Link
This sprite has a big issue where if you break it, then die and return to the level, it can happen that it will then break right when spawning (easier to happen if you use instant Retry). To fix it, just add "STZ !1510,x" in the init routine.
 Donut Link
I've updated the submission to include that line.
 Telinc1 Link
Converted to PIXI and added SA-1 compatibility. The original didn't have graphics, so I included some.

Thanks to extra bytes, the pot is now way more powerful and can spawn any sprite without needing to be reinserted. The original functionality of spawning nothing, a normal sprite, or a custom sprite has been moved to the extra bit, so now it can also always spawn a given sprite.