Views: 993,223,322
17 users online:  Alex_X8, ASMagician Maks, Dan2point5,  DeppySlide, edgar, Frozen Aurora, Golden Yoshi, Hayashi Neru, Hinalyte, Klug, Kusrry, MegacesarCG, NewPointless, ninj,  quietmason, spooonsss, TheJavabrew - Guests: 72 - Bots: 140 Users: 54,466 (2,081 active)
Latest: Riot2212
Tip: Read Lunar Magic's help file and SMW Central's F.A.Q., as they cover most of the basics of SMW hacking.
Not logged in.
Details for Coding a Graphical Bar, with Base ASM (v5.00)
Documents - Coding a Graphical Bar, with Base ASM (v5.00) Link - Show random
File Name: Coding a Graphical Bar, with Base ASM (v5.00)
Version History: View
Authors: HammerBrother
Platforms: SNES
Games: SMW
Type: Tutorial
Language: English
Description: This contains a template for displaying a value of something as a graphical bar on the HUD. See readme on how to use.

Tags: bar, health bar, hud, sa-1
Rating: No rating
Download: Download - 1.00 MiB
MinecraftGamerLR Make sure you have the GraphicalBarDefines folder in the right place. In the main directory of uberasm tool, for example.
Posted by: HammerBrother - | Link
Every time I try to install the example pack, I always get the "Macro Library File Not Defined" error. What am I doing wrong??
Posted by: MinecraftGamerLR - | Link
Tymare Thanks. I went all out, adding tons of features to it than just a basic rectangular meter to give it a more appealing look.
Posted by: HammerBrother - | Link
i like it. it look good #smw{:|}
Posted by: Tymare - | Link
Moderated with:
- Windows 10 Home
- Google Chrome

Incredibly thorough documentation on graphical bars with tons of examples. There's a lot here so I might've missed something but it's overall quite solid. Hopefully people find this useful.
Posted by: MarkAlarm - | Link
Black Goku Yes, just edit the defines that would point to JSL !SharedSubroutineDefines to instead a label that would point to its code (a subroutine within the sprite code ASM) or Pixi's routines folder (must be %SubroutineFilenameFromRoutinesFolder()). And then move (cut/copy, then paste) the code to its code or in the routines folder.

I prefer the shared subroutines patch because it makes it accessible on any ASM resource (like have a bar for the HUD and as a sprite) than just uberasm tool or pixi. Another reason is that you cannot call a subroutine within another, separate subroutine file in a daisy chain -like fashion:

Originally posted by uberasm tool - readme.txt
The second one is that you can't call other libraries codes from a
library file. For example, if you have a windowing HDMA code and you
need to call a sqrt routine, which is located on the math library, you
can't do that, because UberASM Tool can't guess what labels each file
will generate nor what labels each library .asm file will depend from
each other. So unfortunately the library files are pretty much
isolated from each one.
Posted by: HammerBrother - | Link
Black Goku
Is there some way to use the boss health mether without the Shared Subroutines Patch?
Posted by: Black Goku - | Link
OAM (sprite tile) support added.
Posted by: HammerBrother - | 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


Follow Us On

  • YouTube
  • Twitch
  • Twitter


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