Language…
5 users online: Anas, Daniel_mi_bb_fiu_fiu, Heitor Porfirio, Lyfuh,  Thomas - Guests: 72 - Bots: 171
Users: 69,712 (2,541 active)
Latest user: PlusSizedScribe

Crate

SMW Sprites → Crate

This file is obsolete. The latest version is Crate. For other versions, check the version history.

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: 10 (jump to comments)
Rating:
5.0 (1 rating)
No rating
Download 5.91 KiB | 301 downloads

Screenshots

Comments (10)

 Segment1Zone2 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 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 Link
this is great!
Rock 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 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 Link
I wonder if you could make a 32×32 version that can only be pushed on the side...?
 Donut Author 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 Link
i'm not fucking moderating this you tricked me into clicking your scam link
Knight of Time 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 Link