Banner
Views: 924,047,861
Time:
6 users online: 7 up, Gordon JamCast, Infinity, Para_0, Truxton, Valentine - Guests: 50 - Bots: 138 Users: 51,678 (2,062 active)
Latest: JohnL990
Tip: If you plan on making long levels, be sure to include multiple midway points.
Not logged in.
Details for Sprite Health Bar
SMW Patches - Sprite Health Bar Link - Show random
File Name: Sprite Health Bar
Added:
Authors: Koopster
Tool: Asar
Requires Free Space: Yes
Bug Fix: No
Featured: No
Description: This patch implements a container-based health system in the game. A collectible sprite that increases the amount of containers is also included.
What is different about this patch is that it does not touch the status bar at all, displaying the hearts as sprites instead - in fact, it may be safe to use this along with most of the custom status bar patches available in the site.

There are two ways to use the extra containers:
- It is possible to make them work more akin to SMB2, where they will last for as long as a level (rather than a world in this case), and the original amount of containers will be restored when the player returns to the overworld.
- Like in most games with a health system, the containers can be made to be permanent (this is the default setting). However, you must be careful to assign each of the container sprites an ID via the extra byte, otherwise they will respawn and make it possible to collect infinite containers. The amount of container ID's you can have in total is limited to 16 by default, but this number can be expanded easily with the help of a SRAM/BW-RAM enhancer patch. More information about this can be found in the sprite's .asm file.

Make sure to check the patch's .asm file, as it includes many defines to easily customize, among other things, the graphics and position of the containers. A folder is included with an alternative minimalist design, as well as versions that suit the Mario's 8x8 Tiles DMA-er patch and don't replace occupied SP1-2 tiles.
Tags: health bar, lorom, sa-1, smb2, smb2 health, sprite status bar
Download: Download - 22.53 KiB
161 downloads
Screenshots
Previous 
 Next
MarioFanGamer
Moderated with:
  • Lunar Magic 3.30
  • SA-1 Pack v1.40
  • Asar v1.81
  • PIXI v1.32
Fixed a missing SA-1 conversion.

One thing I have found is that you can carry more HP than your total HP count. That bug can be triggered if you disable permanent containers and finish the level with more HP than the initial total health and the extra health doesn't get displayed on the status bar. It's a minor bug and nothing gamebreaking, though.
Posted by:  MarioFanGamer - | Link
Koopster
Originally posted by 1UPdudes
Is there away to make it so Mario doesn't start in his Super Form?

I've just been messing around with seeing if I can have a Small Mario who can take a hit before dying without them ever been Super.

Unfortunately the patch hasn't been thought out to allow dissociation of the small state and having 1 health. It definitely would require some changes all around, which I sadly don't have the time for lately.

And thanks for your nice words!
Posted by:  Koopster - | Link
1UPdudes
Is there away to make it so Mario doesn't start in his Super Form?

I've just been messing around with seeing if I can have a Small Mario who can take a hit before dying without them ever been Super.
Regardless I think this is one if not the best Health Patch the site has gotten due to how customisable it is.
Posted by:  1UPdudes - | Link
Koopster
Originally posted by Fermín Acosta Jr.
Is it compatible with remove status bar

Yes
Posted by:  Koopster - | Link
Fermín Acosta Jr.
Is it compatible with remove status bar
Posted by: Fermín Acosta Jr. - | Link
zacmario
Very, very excited to see this.
Posted by: zacmario - | Link
Koopster
You're sparing the moderators quite a lot of work :P

I fixed the Lakitu and Magikoopa crash. It was just a misplaced return.

The problems with player 2 arose from a few flaws in the code which I hopefully fixed, but also because the default free RAM address I had in the patch for health was actually not 2 free consecutive bytes, so Luigi's health was getting clobbered by something else. I have no idea how I overlooked that. I changed it to one that actually meets that criteria; make sure to check if that new address is actually free in your hack.

I had to move a hijack, so please apply this restoration patch when updating:

Code
!addr = $0000
if read1($00FFD5) == $23
	sa1rom
	!addr = $6000
endif
org $009E2C : STA $0DBE|!addr : STZ $0DBF|!addr

Thank you so much again, I really appreciate it! You can either comment here or message me privately if you happen to find anything else.
Posted by:  Koopster - | Link
JeanOliveira
Hello again Koopster!

I have encountered some other problems in my level edits, and I made sure it is with your patch.

Problem 1: In-game, Mario, when killing certain enemies like Lakitus and Magikoopas in any way, instantly crashes the game.
(tested without sa1, and with sa1 1.40).

Problem 2: In 2-player game, when collecting extra heart containers (custom sprite) with any player, Luigi becomes "semi-invincible". This means, Luigi takes damage from enemies and is stagnated with 1 heart unit, and can only die by falling into holes or lava.

Also, Luigi always starts a new game with 1 heart unit (in small form).
With Mario, everything works perfectly. (tested without and with sa1, and with sram/bwram plus patch).

If I find another error, I can send you a message directly to you, if you like.

Well, I hope I didn't bother you. Thanks for your attention. #tb{:D}
Posted by: JeanOliveira - | Link
JeanOliveira
Thanks for the update. Now it works perfectly!
Posted by: JeanOliveira - | Link
Koopster
Originally posted by JeanOliveira
Mario being "big" riding Yoshi, when picking up a Fire Flower with Yoshi's tongue, gets the power up of the Feather, instead of the Fire Flower.

Thank you for reporting! The bug has been fixed (hopefully), so make sure to redownload.
I have also included an option to activate the feature you asked for.
Posted by:  Koopster - | Link
JeanOliveira
Hello Koopster. Your Patch is great, I'm using it in my hack (I went back to using Lunar Magic a little while ago, but whatever). I just came to inform you that I discovered a small error:

Mario being "big" riding Yoshi, when picking up a Fire Flower with Yoshi's tongue, gets the power up of the Feather, instead of the Fire Flower.

Another thing, but optional: I suggest, if possible, to leave an option in the asm file, that when collecting 1-up mushrooms, all the currently empty heart bars become full.

Thanks for the patch, sorry for any inconvenience.
Posted by: JeanOliveira - | Link
Koopster
I updated the patch once again :P
Now features powerdown animations, an extra option for item box auto-drop, and a few minor, unnoticeable fixes. Users of older versions must apply the following restoration patch when updating: org $00F5FC : LDA #$01 : STA $71
Posted by:  Koopster - | Link
Koopster
Originally posted by Luaxon
Suggestion: the health bars in the third image could fill in that empty space in the bottom center of the status bar. Or maybe the health bars could be in the top left (where the lives are) while the lives and the bonus stars go in the bottom center (I can see maybe 16 hearts fitting there). Doing all of this might just be too unnecessary and complicating though.

The position of each heart of the health bar is entirely customizable. However, as confirmed by Ladida, it is unfortunately not possible to draw sprites in the black area when using the minimalist status bar patch, due to it technically not being part of the screen.
Posted by:  Koopster - | Link
Luaxon
Suggestion: the health bars in the third image could fill in that empty space in the bottom center of the status bar. Or maybe the health bars could be in the top left (where the lives are) while the lives and the bonus stars go in the bottom center (I can see maybe 16 hearts fitting there). Doing all of this might just be too unnecessary and complicating though.

I really like the variety of customization in this patch. Can't wait to see more RPG-like hacks. Great stuff!
Posted by: Luaxon - | Link
Koopster
To anyone who's grabbed this patch already, I have updated it, so please redownload! I improved the logic so items don't end up getting lost by item box math (which happens when you already have a high-tier powerup and your item box is full) - they will be converted into health. As sort of a consequence, I added an option to disable the item box functionality, which should appease users of the Remove Status Bar patch.
Posted by:  Koopster - | Link
TheMorganah
Awesome! We need more sprite HUD like that.
Posted by: TheMorganah - | 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


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

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