Faalco GS Pack - HUD

Takkun

Villager
Member
Joined
May 16, 2012
Messages
22
Reaction score
22
First Language
Portuguese
Primarily Uses
RMMZ



Logo by GabrielForan







Compatible with: VXAce

Compatibility: Great

Ease of use: Easy

Lag Generated: Null







Conditions of Use




Can be modified to taste, since they have the proper credits to me (Faalco)

disclosure of those scripts and place permitted provided that due credit.








Script



################################################
# Faalco GS Pack - {HUD} 12 - 02 - 2012 #
# by Faalco #
################################################
class HUD < Sprite
################################################
# Starting #
################################################
def initialize(view)
super(view)

################################################
# Creating color of HUD #
################################################
@ch1 = Color.new(50,0,0)
@ch2 = Color.new(222,26,50)
@cm1 = Color.new(50,60,60)
@cm2 = Color.new(0,240,50)
@back = Color.new(0,0,0)
@back2 = Color.new(240,240,80)
#Cria o Bitmap
self.bitmap = Bitmap.new(200,200)
self.bitmap.font.name = "UmePlus Gothic"
self.bitmap.font.size = 20
self.z = 300
update
end
#################################################
# Updating #
#################################################
def update
super

#################################################
# Deleting content #
#################################################
self.bitmap.clear
#################################################
# Creating HP bar #
#################################################
hp = $game_actors[1].hp
mhp = $game_actors[1].mhp
wb = 116 * hp / mhp
self.bitmap.fill_rect(10, 10, 120, 10, @back)
self.bitmap.fill_rect(11, 11, 118, 8, @back2)
self.bitmap.fill_rect(12, 12, 116, 6, @back)
self.bitmap.gradient_fill_rect(12, 12, wb, 6, @ch1, @ch2)
self.bitmap.draw_text(60, 0, 200, 24, "HP")
#################################################
# Creating MP bar #
#################################################
mp = $game_actors[1].mp
mmp = $game_actors[1].mmp
wb = 116 * mp / mmp
self.bitmap.fill_rect(10, 30, 120, 10, @back)
self.bitmap.fill_rect(11, 31, 118, 8, @back2)
self.bitmap.fill_rect(12, 32, 116, 6, @back)
self.bitmap.gradient_fill_rect(12, 32, wb, 6, @cm1, @cm2)
self.bitmap.draw_text(60, 20, 200, 24, "MP")
end

def dispose
self.bitmap.dispose
super
end
end
#################################################
# Installing HUD #
#################################################
class Spriteset_Map
alias :or_initialize :initialize
def initialize
@hud = HUD.new(@viewport2)
or_initialize
end
alias :or_update :update
def update
@hud.update if Graphics.frame_count % 5 == 1
or_update
end
alias :or_dispose :dispose
def dispose
@hud.dispose
or_dispose
end
end
###################################################
# END OF THE SCRIPT #
###################################################
Code:




Screens














Download




Not required.













Credits & Thanks




Khas - Her classes were very useful.

Raizen - Study and help scripts of the script.

Faalco - By creating the scripts.

 

anavn

Veteran
Veteran
Joined
Feb 24, 2013
Messages
279
Reaction score
2
First Language
French
Primarily Uses
75% of the pics are not working....
 

GreenYoshi

Warper
Member
Joined
Sep 21, 2013
Messages
1
Reaction score
0
First Language
English
Primarily Uses
If you can get some more screenshots up, that would be great.

Sorry to bump a somewhat old post.
 

Latest Threads

Latest Posts

Latest Profile Posts

The self-righteous indignation of family when you expect them to pay back money you've leant to them never ceases to amaze me.
Gamedev for relaxing? yes or no?
I've been having a rough couple of months and as such let down some friends of mine in the RPG Maker community. I still need time to get back to my normal self, but it's nice to be back, to read articles, and to design again (albeit at a slow pace). Hope to give updates on Kid Crescent soon.
Friendly reminder that you don't have to be able to do absolutely everything. It's okay to scale back features or assets if things are too much - especially if you're the only one working on the game! And you can always add things in later. <3
My new cutscene system makes it so much easier to add parallel stuff happening in the background, I can easily fill the whole screen with action.

Forum statistics

Threads
107,734
Messages
1,031,739
Members
139,869
Latest member
Anzi
Top