Language…
20 users online: Ahrion, arkondx, Bowser95, C722435, crocodileman94, DANIII3L, Darknubs,  Donut, Gonzales555, janklorde, katun24, Knetog, Mangrich1 Gaming, Mapsking, MMXWL, nvr5een, papyrus074, Poodloo, Revenge319, ZappaMania - Guests: 145 - Bots: 115
Users: 58,797 (2,274 active)
Latest user: Cakiws

Generic Player-Following Meter

SMW Sprites → Generic Player-Following Meter

Submission Details

Name: Generic Player-Following Meter
Author: Fernap
Added:
Tool: PIXI
Type: Standard
Dynamic: No
Disassembly: No
Includes GFX: Yes
Description: This is a meter that follows Mario which can be used in a couple different scenarios.

It includes one version that displays the time remaining time for the P-switch (either blue or silver). It also includes an air meter that will decrease as the player stays underwater, killing the player when it runs out. It also supports coding your own type using this as a base.

Both versions have various graphical customization options, and the behavior of the air meter can be further customized. See the readme for more details.

P-switch version requested by RZRider.
Tags: air lorom meter p-switch sa-1
Comments: 4 (jump to comments)
Rating:
0.0 (0 ratings)
No rating
Download 11.14 KiB | 475 downloads

Screenshots

View all

Comments (4)

SJandCharlieTheCat Link
Good stuff, thanks!

FWIW, when I went to change the GFX page from the second to the first, changing it in the actual Uber define did nothing; I had to (also) manually change it in the actual sprite CFG file itself.

As it currently stands, the meter also acts as solid for Mario fireballs. I changed the tweaker byte to disable fireball killing, but that just prevented it from being destroyed.

(Tested on what should be a clean rom other than UberASM retry.)
 Fernap Author Link
Thanks for the heads-up. For a proper fix to the graphics page issue, change line 46 in MeterBase.asm from
Code
  lda #$01 : sta !sprite_status,x

to
Code
  lda #$08 : sta !sprite_status,x

I'm planning on updating this one of these days, hopefully just avoiding making this a sprite and drawing directly, avoiding these weird little issues.
 MarioFanGamer Link
Moderated with:
  • Lunar Magic v3.31
  • SA-1 Pack v1.40
  • UberASM v1.4
  • BSNES v115
Personally, this is more an UberASM code than a sprite since the main code runs there while the sprite solely exists for the graphics (and I'll refer to it as an UberASM code from now on).
Either way, this is a fully functional UberASM code with an alternative way to provide a generic meter (a bar meter to be precise as mentioned below).
I particularly like it how you insert the UberASM code. A library would have been better IMO (due to actually saving space) but using incsrc does reduce the code overhead for the coders a bit.

One suggestion which would be nice is to play a sound effect when the meter turns low. This is the only thing which is missing compared to the existing air meter.
HammerBrother Link
I have made something similar, which is very complex (extremely customizable, can have any number of fill pieces per tile, swappable graphic tile numbers, etc.). Also, I would recommend calling it a “bar meter” since “meter” has a vary broad meaning that can refer to both display numbers or as the amount of fill inside a bar, or a speedometer-styled UI.