Language…
17 users online: anonimzwx, bradcomp, codfish1002, Danik2343, deported, Domokun007, Golden Yoshi, Heitor Porfirio, iamtheratio, Knight of Time, ModernKiwi, mtheordinarygamer, Sammmoo,  StayAtHomeStegosaurus, The_Uber_Camper, Tomi P, xxxblackangel2208xxx - Guests: 279 - Bots: 267
Users: 64,795 (2,375 active)
Latest user: mathew

Spawn Sprites in Yoshi's Mouth v1.1

UberASM Repository → Spawn Sprites in Yoshi's Mouth v1.1

Submission Details

Name: Spawn Sprites in Yoshi's Mouth v1.1
Author: Djief
Added:
Version History: View
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: Press L or R to spawn an item in Yoshi's mouth. Works with shells of different colours, Goombas, Springs, P-Switches and Keys. Did not test every other sprites but I don't think anything else works properly. File includes settings at the top to select which sprite to use, timer for Yoshi's swallowing, and sounds.

Based on code posted by Thomas here

Edited to add sounds options.

v1.1 Fixed a bug where you could spawn a null item by pressing R the frame after Y

Tags: l and r lorom sa-1 yoshi
Comments: 10 (jump to comments)
Rating:
0.0 (0 ratings)
No rating
Download 1.20 KiB | 209 downloads

Screenshots

Comments (10)

Djief Author Link
Originally posted by KevinM
I removed a "STZ $58" which I assume was left over from testing.


Oh oops my bad, yes it was.
 Kevin Link
Tested with: Lunar Magic 3.21, UberASMTool 1.4, SA-1 1.32, Snes9x 1.60. The fix works so it's not possible anymore to spawn a null sprite with this, so accepted. I removed a "STZ $58" which I assume was left over from testing.
Djief Author From older version: Spawn Sprites in Yoshi's Mouth Link
Originally posted by SammmUuU
Could I spawn either a Grinder or a Bowser statue fireball?

Awesome uberasm


As I noted above I have not tested everything but I think the game initializes everything as acting like a shell when you spawn them or spit them with yoshi so most sprites just go bouncing like shells and whatnot when you spit them, there is probably a way to spawn more stuff but it would be more complicated than this simple code, feel free to try those though as I have not tried them and surprisingly goombas work somehow.
Sammmoo From older version: Spawn Sprites in Yoshi's Mouth Link
Could I spawn either a Grinder or a Bowser statue fireball?

Awesome uberasm
Djief Author From older version: Spawn Sprites in Yoshi's Mouth Link
Originally posted by Ayami
Finally

Activate Bowser Scene in Yoshi's Mouth


I didn't actually try that one but feel free... lol...
 Ayami From older version: Spawn Sprites in Yoshi's Mouth Link
Finally

Activate Bowser Scene in Yoshi's Mouth
Djief Author From older version: Spawn Sprites in Yoshi's Mouth Link
Originally posted by KevinM

I can guess your issue was that you set the Disco Shell flag (same for $C2 for the P-Switch) before calling $07F7D2, which resets the tables to 0.


That was most likely what I did, thanks again for the info.
 Kevin From older version: Spawn Sprites in Yoshi's Mouth Link
Originally posted by Djief
Oh thanks, did not know about $18DF and I swear I tried the disco shell thing but I guess I did something wrong back then, still learning. Learned a few more things checking your edits.

I can guess your issue was that you set the Disco Shell flag (same for $C2 for the P-Switch) before calling $07F7D2, which resets the tables to 0.

About the Yoshi slot thing, it's just a nitpick of mine, don't worry about it. It's also not very well known that that address exists in the first place.
Djief Author From older version: Spawn Sprites in Yoshi's Mouth Link
Oh thanks, did not know about $18DF and I swear I tried the disco shell thing but I guess I did something wrong back then, still learning. Learned a few more things checking your edits.
 Kevin From older version: Spawn Sprites in Yoshi's Mouth Link
Tested with: Lunar Magic 3.11, UberASM Tool 1.4, SA-1 1.32, Snes9x 1.60. Works fine, so accepted.
During moderation I added SA-1 support, and made some small edits:
- Fixed error that caused the P-Switch to be gold and always behave as blue.
- Optimized finding Yoshi's slot by using $18DF instead of looping through all sprites.
- Removed "LDA #$01 : STA !15D0,y" since it was useless (and $15D0 gets cleared by $07F7D2 anyway).
Also added a few more options:
- Added an option for the SFX port.
- Added a Disco Shell option.
- Added an option to choose if to spawn the sprite only when riding Yoshi or always (default = only when riding him).