# RPG stat bar problem in flash

**URL:** <https://forum.kirupa.com/t/rpg-stat-bar-problem-in-flash/290725>\
**Category:** programming\
**Created:** [June 18, 2009, 7:23pm UTC](https://forum.kirupa.com/t/rpg-stat-bar-problem-in-flash/290725 "2009-06-18T19:23:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiny\_guwi](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tiny\_guwi](https://forum.kirupa.com/u/tiny_guwi)\
**Post date:** [June 18, 2009, 7:23pm UTC](https://forum.kirupa.com/t/rpg-stat-bar-problem-in-flash/290725/1 "2009-06-18T19:23:14Z")

</div>

Hi, i’m really desperate for answers so please if you can reply to my quesiton!

So, i’m making an rpg game in flash using [COLOR=red]ACTIONSCRIPT 2.0[/COLOR] and i wish to have some stat bars for health and etc… now the real problem is that i don’t know how to set a limit on the health bar since i dont want it to exceed 100 nor go less than 0. And also, how can the stat bar shared between all frames meaning that a score achieved in one frame is simultaneusly added to another frame so when the character arrives to that frame the score is correct.

Thanks in advance  
#Guwi#
