GLtron is an open source computer game based on the light cycle portion of the film Tron. It is released under the GNU General Public License (GPL) and is available on multiple platforms.
btw @BigOnYa the health bar doesnt decrease when i take damage (and yes i put the "at the beggining of the scene change value of greenflatbar: set to Protagonistcopmode.Health::Health())
@Xdqwerty there is health behaviour you can add to your character, then to use a health bar is lil more complicated, google n watch a few tutorial video on it, be too hard to explain here.
I know you have to create a health and health max variable. Then there is a calculation you use in code to subtract width size of the health bar. Google few vids.