Banner
C3 Voting has ended! Stay tuned for the results (and Mr. Switchy's fate...)
Views: 958,453,885
Time:
30 users online:  1UPdudes, Adam,  Anorakun, Children's Digest 1950-2009, Dark Prince, Dookie1977, eduard11, Enan63, h.carrell,  Hooded Edge,  idol, imamelia, Infinity, IronFoxGaming, Jazzman287, Joelybean, Jordan, JupiHornet,  LMNtals, melvin_r, MORC, NeXuS15, Niko0902, ninj, palaceswitcher0, Ruberjig,  Segment1Zone2, spooonsss, UTF, Zandro - Guests: 104 - Bots: 71 Users: 53,071 (2,233 active)
Latest: LumpyTouch
Not logged in.
Details for Spawn Carried Sprites with L/R
UberASM Repository - Spawn Carried Sprites with L/R Link - Show random
File Name: Spawn Carried Sprites with L/R
Added:
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. It's possible to toggle it being possible to spawn an item during flight.
Tags: carriable, lorom, sa-1, spawn, sprite
Rating: No rating
Download: Download - 1.64 KiB
90 downloads
Screenshots
Image
NewPointless
Unmodified, this Uber sometimes spawns sprites too far away from Mario, and they aren't spawned in the held state, particularly when Mario is moving backwards quickly. With Koopster's help, I modified the table at the bottom so it reads like this:

Code
.xoffset_lo:
	db $F7,$09
.xoffset_hi:
	db $FF,$00 


This seems to correct the issue.
Posted by: NewPointless - | Link
MarioFanGamer
Moderated with:
I didn't expect the option to allow carrying items with the cape in the level code and not the library itself since it makes more sense to have it consistent within the whole game and not just singular levels. either way, it's definitively a simple but probably an effective UberASM code.

Some suggestion for next time: Maybe add in the option to set the extra bytes in a later update? It doesn't work with every sprite with more than four extra bytes but these tend to be the exception.
Edit: The option to use the extra bit can also be used, especially with patches which add in a <href="https://www.smwcentral.net/?p=section&a=details&id=22605">extra bit behaviour to vanilla sprites</a>.
Posted by:  MarioFanGamer - | Link

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


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

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