-- This is what goes inside of a dynamic always active entity -- -------------------- HUD Locations and Sizes -------------------- -- health -- --text location local health_tex_posx = 24 local health_tex_posy = 93 local health_text_size = 16 --sprite location local health_spr_posx = 18.3 local health_spr_posy = 88.3 --sprite size local health_spr_sizex = 10.5 local health_spr_sizey = 10 function health_hud_init(e) -------------------- HUD Sprites -------------------- HideHuds() health_sprite = LoadImage("scriptbank\\images\\health.png") health_icon = CreateSprite(health_sprite) SetSpriteSize (health_icon,health_spr_sizex,health_spr_sizey) SetSpriteDepth (health_sprite, 100) SetSpritePosition(health_icon,300,300) end function health_hud_main(e) -------------------- Hide Default HUD -------------------- HideHuds() -------------------- Display lives -------------------- PasteSpritePosition(health_icon,health_spr_posx,health_spr_posy) TextCenterOnXColor(health_tex_posx,health_tex_posy,3,""..g_PlayerHealth) end