Wing Repair

This is a modified code from a tutorial I helped OzApps with, you can view it here http://howto.oz-apps.com/2011/10/little-plastic-armyman-and-fire.html#more

As you can see from the code and video posted that the army man toy has a health bar. If the army man is placed in the fire the army man melts and health goes down. If you click on the heal button the army man heals and gets back to normal when his health hits 100%

I like the idea behind the health bar but I don't want it to start out green, I want it to start out small and red and grow to green and stop at 100% like the heal button.

I figured out that the healthRect controls what the how the health bar starts out as.

1
2
local healthRect = display.newRect(0,0,5,5)
        healthRect:setFillColor(255,0,0)
views:1446 update:2011/10/26 9:29:31
corona forums © 2003-2011