The Questionable Level Design Contest ends in…
Views: 914,127,006
15 users online: Abdu, BallisticAristocrat, Enan63, HodgerMccodger, katun24,  MarioFanGamer, Mitchel1987, NewPointless, Nitrogen,  Noivern, odym82, pollen__, sowaref636, TickTockClock, Valentine - Guests: 135 - Bots: 84 Users: 51,199 (2,268 active)
Latest: sowaref636
Tip: Always double-check which slots the ExGFX you are trying to insert goes to, to make sure you don't get accidental glitched graphics elsewhere.
Not logged in.
Details for Summon Closest Sprite v1.2
UberASM Repository - Summon Closest Sprite v1.2 Link - Show random
File Name: Summon Closest Sprite v1.2
Version History: View
Authors: JamesD28
Type: Level, Game Mode
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This code allows Mario to summon the closest carryable sprite, horizontally, into his hands. The closest sprite will be put into his hands instantly as long as he isn't already holding something, and it will also detect kicked sprites. Could be useful for puzzle levels, or Kaizo levels involving summoning sprites in a tight order to perform specific tricks.
Summon is performed by holding X or Y (by default), then tapping L or R.

Usage note: If using in your hack, it may be wise to let the player know that it only measures horizontal distance, not vertical.

Update v1.1: Bug fixes, and made some of jankier "features" of the code into optional defines. Also made a few small optimizations, moved the SFX/Bank to defines, and allowed the user to customize the hold input.

v1.2: Fixed a bug where springboards could be "revived" and summoned in dead/despawned states.
Tags: carryable, lorom, sa-1, sprite, summon
Rating: No rating
Download: Download - 1.77 KiB
Tested with: Lunar Magic 3.30, UberASM Tool 1.4, SA-1 1.40, Snes9x 1.60. The code works fine and the springboard issue mentioned in the description has been fixed, so accepted.
Posted by:  KevinM - | Link

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

Copyright © 2005 - 2021 - 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