Language…
9 users online: Adsila, BabyBlueFord, Courage2006, CrankyPenguin, DasFueller, Moll,  Segment1Zone2,  shovda, Xample - Guests: 46 - Bots: 274
Users: 65,963 (2,171 active)
Latest user: sonicwin

Offscreen Indicator for Sprites

UberASM Repository → Offscreen Indicator for Sprites

Submission Details

Name: Offscreen Indicator for Sprites
Author: Kevin
Added:
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This UberASM will show an indicator for sprites that are offscreen vertically. Check out the asm file for customization options.
Tags: lorom sa-1 sprite
Comments: 7 (jump to comments)
Rating:
0.0 (0 ratings)
No rating
Download 2.05 KiB | 177 downloads

Screenshots

Comments (7)

Anas Link
Unfortunately, I cannot seem to make the indicator show up for visible sprites at the very top of the screen by changing the values at 'cmp #$0100' or 'cmp #$00E6', which would've been perfect for a specific level gimmick I have involving wigglers and wall springboards. I also noticed that for some reason, the indicator's X-offset is way out of place with right-wall springboard:



(the red SMB3 piranha plant part is the indicator, and '!yoff_above' = $D0)

I tried to check the springboard's sprite number (0x6C) like so, but to no avail:

Code
    ; Find the indicator's X position (centered on the sprite's hitbox)
    rep #$20
    and #$00FF : lsr
    clc : adc $04
    sec : sbc $1A
	lda !9E,x
	cmp #$6C
	bne .norm
	
if !tile_size == $00
    sec : sbc #$0014
else
    sec : sbc #$0018
endif

	bra .cont
	rtl
	
.norm	
if !tile_size == $00
    sec : sbc #$0004
else
    sec : sbc #$0008
endif

	bra .cont
	
.cont
    sta $04


If anyone knows how to fix these two issues, I'd heavily appreciate it as it would be perfect for my level!
 Thomas Link
Tested with:
  • Mesen 2.0.0
  • Lunar Magic 3.33
  • UberASM Tool 1.6
  • SA-1 Pack 1.40

Works well. Has a lot of useful customization options in the ASM file as well.

One thing worth noting though is that like the player offscreen indicator, this UberASM code will only work when inserted to a level, not a gamemode, so you can not apply it globally to every level by doing so.
gui Link
is it possible to make this work in a vertical level? instead of tracking the sprite vertically offscreen, it would track them horizontally.
 Kevin Author Link
I may add that option later on
simon.caio Link
I second this! :)
simon.caio Link
!
BabaYegha Link
!