Search tutorials
The next step is to set the previously made text fields to display the character's statistics:
//Character stats text setup
_root.characterAttack_txt.text = _root.character_mc.attack;
_root.characterDefence_txt.text = _root.character_mc.defence;
_root.characterMaxHealth_txt.text = _root.character_mc.maxhealth;
_root.characterHealth_txt.text = _root.character_mc.health;
_root.characterMaxEnergy_txt.text = _root.character_mc.maxenergy;
_root.characterEnergy_txt.text = _root.character_mc.energy;
_root.characterLevel_txt.text = _root.character_mc.level;
_root.characterHitRate_txt.text = _root.character_mc.hitRate/1000;
_root.characterDamage_txt.text = "("+_root.character_mc.minAttack+"-"+_root.character_mc.maxAttack+")";
_root.characterXP_txt.text = _root.character_mc.xp;
_root.characterMaxXP_txt.text = _root.character_mc.maxxp;
| » Level Intermediate |
|
Added: 2005-05-24 Rating: 4 Votes: 14 |
| » Author |
| Tutorial scripted and created by Oliver Sale |
| » Download |
| Download the files used in this tutorial. |
| Download (4 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!