Jump to content
Sign in to follow this  
Tejas

hud HP HUD via Common Events

Recommended Posts

HP/MP HUD via Events
 

[sorry If I skip something]

The tutorial explains HP HUD same applies to MP HUD

 

||-----------------------------------------------Here We GO !!--------------------------------------------------||

 

 

*This can be applied to your game if there is no Level UP, and static HP.

For the given example I'm using VX Ace and My Player's Health is 1000. And his name is Eric.

[ -> Means Sub Conditional Branch And Enter (Space Between Lines Means New Conditional Branch) ]

 

Yaa one can create a HUD just by events but it'll be a lil bit complex. To make It lil easy do it by common event and when your game starts, Make a switch ex - GameStart = ON and the condition for common events is GameStart  = ON and set it to parallel process...... like this you can make HUD visible/disappear at any point of your game.

 

For HP HUD -

 

Make a transparent image in Photoshop of your game size, mine is 640*480 pixels.

Make a Health meter in any corner of the image you want the HUD to be

The fill the center with RED color on a new layer for for life bar.

Save the image as HP100 or as you prefer.

Divide the life bar into 10 parts.

Now as you Save HP90 hide a part of life bar to make it appear less.

Now as You go to HP80, HP70, HP6 etc do this till HP0.

 

Like This Sorry for the ultra lazy work

DU8BxqE.png

 

 

||-----------------------------EVENTING-----------------------------||

 

Now in Common Events Make a Variable CharacterHealth

In Variable operation Set CharacterHealth = Eric's HP

 

Now its time for conditional brainching,-

Conditional Branch If Variable CharacterHealth=1000

Erase Picture=1

Show Picture = HP100 as 1

 

Conditional Branch If Variable CharacterHealth<1000

->Conditional Branch If Variable Character health>900

Erase Picture=1

ShowPicture = HP90 as 1

 

Conditional Branch If Variable CharacterHealth<900

->Conditional Branch If Variable Character health>800

Erase Picture=1
ShowPicture = HP80 as 1

 

Conditional Branch If Variable CharacterHealth<800

->Conditional Branch If Variable Character health>700

Erase Picture=1

ShowPicture = HP70 as 1

 

Conditional Branch If Variable CharacterHealth<700

->Conditional Branch If Variable Character health>600

Erase Picture=1

ShowPicture = HP60 as 1

 

 

Like This go on till you Reach ShowPicture = HP0

If you have any problem feel free to ask me  :)

If you think I was helpfull and liked it feel free to credit.

Edited by Tejas
  • Like 2

Share this post


Link to post
Share on other sites

This is awesome! Instead of HP/MP, though, I am going to use it to register a score! 

Edited by philteredkhaos

Share this post


Link to post
Share on other sites

Nice Idea man!! all you just need is being creative.. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted