Language…
7 users online: 7 up, abc_ore, H3nt4ik4m3n, Leys3r, Maniek, PixelFhacks, Shiki_Makiro - Guests: 56 - Bots: 123
Users: 70,591 (2,469 active)
Latest user: Amoru

Offscreen Indicator

UberASM Repository → Offscreen Indicator

Submission Details

Name: Offscreen Indicator
Author: Thomas
Added:
Version History: View
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This will display an 8x8 or 16x16 sprite tile at the top or bottom of the screen at Mario's X position whenever he goes offscreen. This way, the player can tell where he is even though they can't see him.

This update makes it so you can optionally have the marker scale away from the edge of the screen based on how far Mario is offscreen, as well.

Note: due to the timing of how sprite graphical data is handled, this code only works in level ASM, not game mode ASM. If you want to apply this to all levels, use the patch version.
Tags: lorom player sa-1 sprite
Comments: 13 (jump to comments)
Rating:
5.0 (5 ratings)
No rating
Download 1.53 KiB | 789 downloads

Screenshots

Comments (13)

 zuccha Link
The update works well.

Note that the scaling effect can be customized. The update also hides the indicator during Mario's death animation.

Tested with: Lunar Magic 3.40, SA-1 Pack 1.40, UberASMTool 1.6, Snes9x 1.62.3.
Doopu From older version: Offscreen Indicator Link
I found success with Sweetdude's nmi suggestion for usage in Gamemode 14 - hasn't blown up yet! Awesome asm, Thomas #wario{^_^}
Gulaschko From older version: Offscreen Indicator Link
Is there a possibility to have that same patch for items e.g. shells? :D
Sweetdude From older version: Offscreen Indicator Link
If you want to use this in Gamemode 14 change the main to nmi and it should work.
DanOfMostTrades From older version: Offscreen Indicator Link
Works great! Thank you for this.
BoxedApplePie From older version: Offscreen Indicator Link
Originally posted by ExONightZ
if i could make patches i would make a patch that is this UberAsm so i don't have to put UberAsm on every level.

I wholeheartedly support this
nlxt From older version: Offscreen Indicator Link
if i could make patches i would make a patch that is this UberAsm so i don't have to put UberAsm on every level.
HammerBrother From older version: Offscreen Indicator Link
Quote
Note: due to the order of how sprite graphical data is handled, this code only works in level ASM, not game mode ASM. To do the latter, you will have to manually add a hijack to the game mode (following the OAM clear call at $00A295).


This is because JSL $7F8000 is executed before processing the OAM to be displayed on the screen, check this code:

Originally posted by UberASMTool13\asm\base\level.asm
Code
;...
main:
	PHB
	LDA $13D4|!addr
	BNE +
	JSL $7F8000
+
	REP #$30
	LDA !level
	ASL
	ADC !level
	TAX
	;...
Mogu94 From older version: Offscreen Indicator Link
Tried inserting this with UberASM Tool, nothing appeared when Mario was off-screen. Then I converted any 4 digit addresses in the code to what they should be for SA-1 to see if that was the issue, still nothing appeared. Am I missing something?

Edit: Got it. Just didn't have to update the oamIndex address, convert all other 4 digit addresses to be SA-1 compatible. I know it says not to but it's in the same number range as other addresses that need to be converted to work with SA-1 so I just figured...

But yeah, works great now!
 Erik From older version: Offscreen Indicator Link
Works nice, however I tweaked the values for the tile that appears at the bottom since it acted kinds weird if part of Mario was still slightly visible.
NaroGugul From older version: Offscreen Indicator Link
Thank you for making it. This will be really useful
chineesmw From older version: Offscreen Indicator Link
Nice! Very useful UberASM. I'm surprised that no one has constructed this before.
zacmario From older version: Offscreen Indicator Link
Good bye useless coin trails.