VLDC #13 ends in
Views: 995,165,403
11 users online: Agorija, cocox3502,  DeppySlide, El Cuh Fermin, KaidenThelens,  NopeContest, Nostalgick, OhMuramatsu, s0mber, SMWizard, Ultima - Guests: 75 - Bots: 98 Users: 54,550 (2,072 active)
Latest: rip1701
Tip: Check for glitched graphics in all frames of an object or sprite (e.g., the ON/OFF block changing, etc.).
Not logged in.
Spawn Carried Sprites with L/R by Koopster
Forum Index - Valley of Bowser - Moderation Questions - UberASM - Spawn Carried Sprites with L/R by Koopster
Pages: « 1 » Link
File Name: Spawn Carried Sprites with L/R
Submitted: by Koopster
Authors: Koopster
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: Allows the player to use L/R to spawn a sprite, normal or custom, in a carried state in Mario's hands. This code also allows for each of the shoulder buttons to spawn a different sprite.

Includes checks so sprites won't spawn when they shouldn't, such as when something's already being carried.
There is a flaw with this UberASM code: It doesn't spawn custom sprites properly. And there is a rather obvious reason for that:

	LDA $00|!dp,y		;\
	STA !7FAB9E,x		;/set custom sprite #
	JSL $0187A7|!bank	;clear custom sprite stuff
	JSL $07F7D2|!bank	;clear regular sprite stuff
	LDA #$09
	STA !14C8,x			;sprite is in carried state

You didn't consider that $07F7D2 will clear out the custom sprite flag as any sprite which would spawn also would have been a custom sprite, not to mention all the tweaker bytes set for the custom sprite would have been overwritten by $07F7D2. As a result, you can only spawn a carried sprite with the same number as the custom sprite's acts like.

While we're at the removal of your patch: You can spawn a sprite while you're flying with a cape. Just noting since this does have some potential for jank so you could make it at least toggleable.

Moderated with:
Pages: « 1 » Link
Forum Index - Valley of Bowser - Moderation Questions - UberASM - Spawn Carried Sprites with L/R by Koopster

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2022 - SMW Central
Legal Information - Privacy Policy - Link To Us


Follow Us On

  • YouTube
  • Twitch
  • Twitter


  • Super Mario Bros. X Community
  • Mario Fan Games Galaxy
  • sm64romhacks