Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Luna Engine MV

A script that modifies RPG Maker MV UI easily · By Archeia

Custom HP Gauge

A topic by Punto da Baguette created Jul 24, 2019 Views: 702 Replies: 3
Viewing posts 1 to 3
(3 edits)

Hello there !

I'm begining with this awsome tool and i'm not an expert so i preffer to ask for more informations !

So, i want to creat a custom HP gauge like this. (90° for the rotation consuming HP verticaly)

 

I'm using this code :

I have one issue and one question so :

1/When my character in game lose HP, at the end of the turn, the picture (heart) restart instead of keeping damages.

For exemple : Actor take 50% damages => Heart is halfed => end turn => Heart is full.


2/ For my question, i have a "heart background" like this :



For when the heart lose his red content, the black packground make a contrast. Is it possible to make that working ?


Thanks you and sorry for my bad english skill !

Hey, Youko here. I'm one of the primary testers for Luna and the one who made one of the UIs featured on the page (the gold and black one).


Basically to answer your question, the reason it fills back up has to do with you setting a colour for the gauge. Basically it refills because it gets confused about the conflicting settings (and probably the "blind: true"???). Simply getting rid of all the crossed out lines should resolve the issue. 


As for your second request, the cleanest way to accomplish that is by basically making a second "gauge back" image and layering it behind the gauge so once the gauge decreases, it will show through. Simply add another image component with your source file for the back with more or less the same rotation and position settings, and add it above your ActorHpGauge component on the lunatics item list.

Thanks you verry much ! You save my life and with your help, i finaly understand a lot of things right now ! 

Thanks you again !

Good to hear! Feel free to post again if you need more help.