Enemy Hp Bars

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
This script I am developing displays the enemies hp bar above their sprite.

As they get weakened the bar will go from green>yellow>orange>red.

Once they are dead the bar will disappear. Please note that this script is largely untested as it was just developed. If there are any bugs let me know. Also it doesn't work well with very large monsters because there bar is off the screen. 

This was in response to this thread:

http://forums.rpgmakerweb.com/index.php?/topic/48384-enemy-hp-bars/

I need a good scripter to tell me how to get the height / width of a enemy sprite that would be so great! I did some backward thing I'm surprised has worked for me.

Please see the screen shot below.

Download Link:

http://pastebin.com/mQmZ5Jy0
 

DamianCastaway

Notepad++ Warrior
Veteran
Joined
Mar 2, 2014
Messages
121
Reaction score
137
First Language
English
Primarily Uses
N/A
Edit: Thanks for unprivating that pastebin :D

However I was following that other thread and I do have to say that the hp bars are very visually appealing.

Do you perhaps think there is breathing room to create a seperate Boss bar where we define the boss enemy via notetag and have their bar display at the top of the screen?
 
Last edited by a moderator:

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
This script I am developing displays the enemies hp bar above their sprite.

As they get weakened the bar will go from green>yellow>orange>red.

Once they are dead the bar will disappear. Please note that this script is largely untested as it was just developed. If there are any bugs let me know. Also it doesn't work well with very large monsters because there bar is off the screen. 

This was in response to this thread:

http://forums.rpgmakerweb.com/index.php?/topic/48384-enemy-hp-bars/

I need a good scripter to tell me how to get the height / width of a enemy sprite that would be so great! I did some backward thing I'm surprised has worked for me.

Please see the screen shot below.

Can this be used commercially? If so, how may I credit you, what alias do you prefer :)
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
Pastebin should be downloadable now. Still getting used to posting stuff.

Anyone can use anything I create for whatever purpose. No credit necessary. 

I am just making things for my game, if people want to use my stuff then go right ahead.
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
Pastebin should be downloadable now. Still getting used to posting stuff.

Anyone can use anything I create for whatever purpose. No credit necessary. 

I am just making things for my game, if people want to use my stuff then go right ahead.
Thank you again for creating this plugin, I really appreciate it :)
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
I should be able to create the boss bar. You will specify in the note tag if it is a boss and a bigger wider bar will be displayed.
The only problem I have is where to place the bar. Many people use different UI so it can be hard to place it.If I Place it at the very top then the damage log will be obstructed. I guess if I disable the damage log only for boss battles then it would look fine.
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
error message.png

This error message pops up when I enter a battle :/
 

DamianCastaway

Notepad++ Warrior
Veteran
Joined
Mar 2, 2014
Messages
121
Reaction score
137
First Language
English
Primarily Uses
N/A
error message.png

This error message pops up when I enter a battle :/
If you are using the Animate Enemies plugin and have an actor-based animated enemy (Such as one of the cover art characters for example), it cannot track their float parameter. Thus causing this error.

Also perhaps placing the boss bar right above the battle Hud (Where you select the commands for battle) could work. Not all boss bars in games have to be placed at the top of the screen I suppose, or we could be able to define the bars location via notetag and x/y co-ordinates ourselves per Boss battle, however that seems like a lot of work to take on
 
Last edited by a moderator:

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
Is there a download anywhere to this Animated Enemies plugin?
 

DamianCastaway

Notepad++ Warrior
Veteran
Joined
Mar 2, 2014
Messages
121
Reaction score
137
First Language
English
Primarily Uses
N/A
Last edited by a moderator:

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
If you are using the Animate Enemies plugin and have an actor-based animated enemy (Such as one of the cover art characters for example), it cannot track their float parameter. Thus causing this error.

Also perhaps placing the boss bar right above the battle Hud (Where you select the commands for battle) could work. Not all boss bars in games have to be placed at the top of the screen I suppose, or we could be able to define the bars location via notetag and x/y co-ordinates ourselves per Boss battle, however that seems like a lot of work to take on
Ah that makes a lot of sense, darn  :(   >_>
 

DamianCastaway

Notepad++ Warrior
Veteran
Joined
Mar 2, 2014
Messages
121
Reaction score
137
First Language
English
Primarily Uses
N/A
All hope is not lost. For the sake of this plugin, I have disabled my SV animated battlers in favor of the breathing animations and scale. That error will vanish as long as you do not use the actor-spritesheet based animations for your enemies. It treats the enemies as actors and the plugin doesnt know how to treat them. (How Im interpreting the error at least). 
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
All hope is not lost. For the sake of this plugin, I have disabled my SV animated battlers in favor of the breathing animations and scale. That error will vanish as long as you do not use the actor-spritesheet based animations for your enemies. It treats the enemies as actors and the plugin doesnt know how to treat them. (How Im interpreting the error at least). 
I understand that :)

But my game has a lot of custom made animated battlers though haha  :guffaw:
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
I don't know enough about the sprite/battler side really.
I just started programming  2 weeks ago.
It is all still confusing to me.
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
Haha i understand, I find coding and programming quite confusing myself 
 

Vassim74

It's a Secret!
Veteran
Joined
Jan 7, 2014
Messages
115
Reaction score
85
First Language
English
Primarily Uses
RMMV
Would it be possible to hide the bar at the start of battle and then have it displayed through a command?

I made a battle tutorial for my game, and since I have it where the enemy's HP is restored at certain intervals (this is to prevent the enemy from dying when I remove their immortal state, and also because they stop attacking when their HP hits 0), I'd like an option to hide the bar so that players can't see the enemy's HP regenerate, and then have it show up when they are no longer immortal.
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
624
Reaction score
159
First Language
English
Primarily Uses
RMMZ
I would love to use this! But I would need it to develop these traits first:

1) Have the option to have the HP bar at the bottom of the sprite. Currently it covers any State conditions the enemy may have while on top, and I think it would look nice on the bottom.

2) Fix the issue with SV Battlers in the Animated Battler plugin, as mentioned above.

3) Have the option to have the HP bars ONLY visible during the command selection process. Once the "Battle" begins on each turn, the HP bars become invisible.
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
1) Can do easily, I will update the plugin so the user can move the default position of the bars.

2) I do't know how to do that :( , I don't know how sprites work and how to access there x,y if I could do that then it would be easy.

Would probably have to wait until Yanfly or someone better puts out an enemy hp bar script. (I have only been coding since the game came out);

3)That probably wont be to bad I could add that as a plugin option to only display during combat.
 

sarugaki339

Villager
Member
Joined
Oct 31, 2015
Messages
28
Reaction score
4
First Language
English
Primarily Uses
This is exactly what I was looking for, thank you so much. I found someone else's where they had the number above the enemy but I was looking for a physical HP bar. And the color change is even better. However, I was goin through the comments in this forum and it's my understanding that you can't use animated enemies with this script? If that's the case, so be it, because I would much rather have enemy HP bars but I wanted to make sure first.
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
I am working on getting it to do the animated battlers. I don't know enough about it right now though. 
Someone will probably release a better version very soon. This was more of a place holder/learning experience for me.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top