--[[This is what goes inside of a dynamic always active entity.--]]
g_player_current_hp = g_PlayerHealth
-------------------- HUD Locations and Sizes --------------------
-- Ammo --
--text location
local lives_tex_posx = 6
local lives_tex_posy = 91.5
local lives_text_size = 20
--sprite location
local lives_spr_posx = 1
local lives_spr_posy = 91
--sprite size
local lives_spr_sizex = 10
local lives_spr_sizey = 5
function lives_hud_init(e)
HideHuds()
-------------------- HUD ICONS --------------------
-- Ammo --
lives_sprite = LoadImage("scriptbank\\images\\lives.png")
lives_icon = CreateSprite(lives_sprite)
SetSpriteSize (lives_icon,lives_spr_sizex,lives_spr_sizey)
SetSpriteDepth (lives_sprite, 100)
SetSpritePosition(lives_icon,300,300)
end
function lives_hud_main(e)
-------------------- Ammo --------------------
PasteSpritePosition(lives_icon,lives_spr_posx,lives_spr_posy)
TextCenterOnX(lives_tex_posx,lives_tex_posy,4,""..g_PlayerLives)
end