--a simple life display... local function LifeDisplay(pn) local function update(self) --local this = self:GetChildren() local lifemeter = SCREENMAN:GetTopScreen():GetLifeMeter(pn) --ēvē local life = lifemeter:GetLife() life = clamp(life,0,1) self:GetChild("LifeText"):settextf("Life: %.2f%%", life*100) end return Def.ActorFrame { InitCommand=function(self) self:player(pn); self:SetUpdateFunction(update); LoadFont("_arial black 20px")..{ --Text="100%"; Name="LifeText"; }; }; end return Def.ActorFrame { LoadFont("_impact 50px")..{ InitCommand=function(self) self:CenterX(); self:FromTop(30); Text=string.format("%02i", STATSMAN:GetStagesPlayed()+1); }; LifeDisplay(PLAYER_1)..{ InitCommand=function(self) self:FromCenterX(-160); self:FromTop(20); end; }; LifeDisplay(PLAYER_2)..{ InitCommand=function(self) self:FromCenterX(160); self:FromTop(20); end; }; }