Progressbar is a Gideros class, which allows to create progress bars using Shape objects (including images).
You can also set texts for the progress bar.
Progressbar also provides a set/get methods, which allows you to animate it using GTween class.
local bar = Progressbar.new({
width = 200,
height = 20,
minValue = 0,
maxValue = 100,
value = 100,
radius = 5,
textFont = nil,
textColor = 0xffffff,
showValue = true,
textBefore = "Life: ",
textAfter = " %",
animIncrement = 1,
animInterval = 10
})
bar:setPosition(10, 10)
stage:addChild(bar)