Language…
5 users online: Digital E, Ginnb0b, Nitrogen,  Saphros, UTF - Guests: 91 - Bots: 88
Users: 68,954 (2,364 active)
Latest user: Alma

Crate

SMW Sprites → Crate

Submission Details

Name: Crate
Author: Donut
Added:
Version History: View
Tool: PIXI
Type: Standard
Dynamic: No
Disassembly: No
Includes GFX: Yes
Description: A simple, vanilla-esque carriable crate sprite which floats in liquids. Open the .asm file for more info.
Note that bringing custom carriable sprites through pipes has a tendency of breaking them. You can fix that with this hex edit.

Thanks to  AmperSam for the idea and the graphics.
Tags: carriable lorom pacifist platform sa-1
Comments: 11 (jump to comments)
Rating:
5.0 (1 rating)
No rating
Download 5.94 KiB | 292 downloads

Screenshots

View all

Comments (11)

 MarioFanGamer Link
  • Lunar Magic v3.50
  • SA-1 Pack v1.40
  • PIXI v1.42
  • BSNES v115
Added another line of code to remove another garbage tile.

The reason why a garbage tile may appear is due to the way how custom carriable sprites are handled in PIXI. They first run the carriable handler and then the custom sprite code. For this reason, they inherit including the GFX routine which defaults to shells which draw two extra tiles (the eyes) by default.

One potential throughout solution is to use a custom carriable handler (either through print or through state overriding) in the sprite to not run the routine at all at the cost of reimplementing the code twice.
 Segment1Zone2 From older version: Crate Link
For anyone trying to create custom graphics for this, make sure to add the following below %GetDrawInfo (Line 124):
Code
LDA #$F0
STA $0309|!Base2,y

This will erase the background garbage normally unseen in the sprite (due to how it's drawn).
 RussianMan From older version: Crate Link
Tested With:
-Lunar Magic 3.40
-PIXI 1.40
-bsnes v115
-SA-1 1.40

An incrateble idea. It's simple but works well, floating in liquids is a nice bonus.
simon.caio From older version: Crate Link
this is great!
Rock From older version: Crate Link
Thank you so much for this!

I have one suggestion!
If the crate is moving left or right on conveyors, it moves under/without Mario.
Would it be possible one day to make Mario follow the sprite like the rideable SMB2 sprites?

I am making a factory level and that would kick butt!
Still rating it 5/5.
 Donut Author From older version: Crate Link
I already have some code in place which does just that (see line 223). The reason (I think) it doesn't work with conveyors, is because they don't set the sprite's x speed (which the update x position routine uses to calculate the position delta → how much the sprite has moved this frame in pixels). Instead, they just shift sprites by changing their x position (so the crates are basically "moving" while having 0 x speed; and since x speed is used for calculating the delta, it will return 0, and so the player isn't shifted, siiiinncee the delta is what's applied to the player's position to do so)... something along the lines of that. Adding a check specifically for conveyors would be a bit tricky. I guess I could just calculate my own position delta and then use that (somethingsomething buffer sprite x position and then subtract it from it's current x position). Probably a thing for an update, yea.
Klug From older version: Crate Link
I wonder if you could make a 32×32 version that can only be pushed on the side...?
 Donut Author From older version: Crate Link
I have thought about adding more features to this (including what you just said; making it pushable and/or big), but for now I've decided to keep it simple. Maybe in the future.
Burning Loaf From older version: Crate Link
i'm not fucking moderating this you tricked me into clicking your scam link
Knight of Time From older version: Crate Link
For some reason, this sprite reminds me of dtothefourth's crate sprite (which is available on her Patreon). Donut, just out of pure curiosity, but did you base your crate sprite on hers, or is yours completely separate (e.g. without the option to make it act like a stone that slows the player down and weakens their jumping ability when held)?
 Donut Author From older version: Crate Link