Language…
6 users online:  Alex, autisticsceptile1993,  Hazel, MellowYouth, Ntchannel Rom-hacking, playagmes169 - Guests: 117 - Bots: 165
Users: 67,686 (2,008 active)
Latest user: tonye3940

Shell-Collectable Coins and Yoshi/Dragon Coins

SMW Patches → Shell-Collectable Coins and Yoshi/Dragon Coins

Submission Details

Name: Shell-Collectable Coins and Yoshi/Dragon Coins
Author: Erik
Added:
Version History: View
Tool: Asar
Requires Free Space: Yes
Bug Fix: No
Featured: No
Description: Allows Coins and Yoshi Coins to be collected with Koopa Shells. Read the .asm file for more info.
It's also compatible with the Yoshi Coin Fix and the Individual Dragon Coin Save, but note that you should insert this patch after instering any of those two.

Note that due to the way sprite/object interaction works in Super Mario World, coins placed next to walls can sometimes not be picked up. I tried as much as I could to alleviate this but I couldn't really fix it. They kinda seem to work now. LMPuny's note: There are still some issues, such as when you put !CollectType to 1 and up-throw a shell to a wall to the left, it won't collect any coins that are next to that wall.

Update 1 (June 8th): added support for buzzy beetles and throw blocks.
Update 2 (July 7th): added support for thrown Goombas, Mecha-Koopas and Bob-Ombs. Added support for brown blocks which turn into coins when the P-Switch is set, and added SA-1 support.
Update 3 (March 3rd 2018): added support for invisible P-Switch coins and muncher coins, and fixed a softlock when the shell/block/etc. went out of bounds (thanks to Gamma V for reporting this!).
Update 4 (June 6th 2023): fixed interaction in vertical levels, fixed shells from collecting solid blocks (only if two rightmost digit of the Map16 number match with the coins on the page 0), made interaction more central to the shell.
Tags: coin collectable dragon coin lorom sa-1
Comments: 27 (jump to comments)
Download 2.05 KiB | 876 downloads

Screenshots

Comments (27)

Zatara Link
How can I make certain custom sprites also able to collect coins by touching them?
 MarioFanGamer Link
I've already written a reply in a thread you've created but to put a short answer here, it doesn't work with custom sprites because it's out of reach thereof.
Burning Loaf Link
Tested with:
  • Mesen 2.0.0
  • Lunar Magic 3.33
  • SA-1 Pack 1.40
  • Asar 1.81

Update works as it should.
 MarioFanGamer Link
This updated added a couple bug fixes, most notably it fixes vertical level interaction (thanks to  LadiesMan217 for the bug report) which has been broken since the first update.
 LadiesMan217 From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
There seems to be a problem with blocks set to act as 12E (throw block). Throwing a throw block to any tile set to act like one will result in it acting as a Yoshi Coin being collected. Apparently this happens bc it checks the actual tile number, not the acts-like setting. To fix this find these lines:

Code
    	JSL $06F700|!bank

	LDY $1693|!addr		;\

and in between those 2 lines add:
Code
	LDA $18A7|!addr
	XBA
	LDA $1693|!addr
	REP #$20
.FindActsLike
	ASL
	ADC $06F624|!bank
	STA $0D
	SEP #$20
	LDA $06F626|!bank
	STA $0F
	REP #$20
	LDA [$0D]
	CMP #$0200
	BCS .FindActsLike
	SEP #$20
	STA $1693|!addr
	XBA
	STA $18A7|!addr

That should fix the issue (I know it did for me). Courtesy of this fix goes to  imamelia.
Sacri Pan From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Hey, I would like to put LX5's ice blocks in too, is that possible?
TheLegendaryOrb From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Is it possible to allow to collect the coins if there is horizontal speed and/or vertical speed? Like CollectType 1
EmilyEmmi From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
How would I add support for things like the NSMB Star Coins?
Or is that not possible?
 Major Flare From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Patcher: Asar 1.71.
Emulator: ZMZ 1.08.
SA-1 test: SA-1 1.31.

Aside the old functionalities still working, the new ones worked just fine, with the limitations given in the description. There's enough reason for me to approve this.
Gamma V From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Thanks for fixing that out-of-bounds soft-lock issue.
Young Boi From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
It works, but it's only collectible from the left and right sides. Can you make it collectable from all the sides?
LuksDahora22 From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Is there a tutorial saying how I can patch this? sorry, I'm new, I've alredy patched SA1 tho
LuksDahora22 From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Is there a tutorial saying how I can patch this? sorry, I'm new, I've alredy patched SA1 tho
 MarioFanGamer From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Seems to work. Even SA-1 support works.
 Erik Author From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
The patch technically is SA-1 compatible, but I didn't test it there so I didn't add the tag.
CalHal From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Make sure you add SA-1.
Gregor From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
soon we'll be able to collect every coin in existence
CalHal From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Can you add support for the SMB3 Bricks or how about the Anti-Coin v2.0, the Coin Outline, and the Reverse Munchers? Can you add support for custom block coins?
Gamma V From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Yeah, if a kicked shell is allowed to go off the left side of screen 00, the game soft-locks.
Rykon-V73 From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
It's true. I tried it myself.
IHMPRKB123 From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Error cuando el caparazón sale de pantalla, el juego se congela en snes 9X
Errors with the shell leaves the screen, the game is freezes in snes 9X
 Erik Author From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
No
 Noivern From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
erik

goombas
 HuFlungDu From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Updated patch to auto clean up it's code if you patch it first with CollectType as 1 then change it to zero. Before it would cause an explosion if that were done.

Otherwise works as advertised. A bit wonky at times, but I also cannot know how to fix that, so...
 Erik Author From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
fixed
 Erik Author From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Originally posted by MasterSkodwarde
Wait... what about Buzzy Beetle shells and purple turnblocks?

oops LOL

Quote
And can a kicked-up shell collect coins too?

i added an option for that but it's kinda wonky due to how sprite-object interaction works. this also happens to be why coins next to walls are sometimes ignored.
Anas From older version: Shell-Collectable Coins and Yoshi/Dragon Coins Link
Wait... what about Buzzy Beetle shells and purple turnblocks? And can a kicked-up shell collect coins too?