Health bar in flash Game
- 729 Views
- 15 Replies
- Silent-Murderer
-
Silent-Murderer
- Member since: Oct. 26, 2004
- Offline.
-
- Forum Stats
- Member
- Level 04
- Blank Slate
Someone can help me!!!
i need to know how to do a health bar for a RPG game
- 0x41
-
0x41
- Member since: Dec. 30, 2004
- Offline.
-
- Forum Stats
- Member
- Level 10
- Blank Slate
At 3/11/05 03:52 PM, 0x41 wrote: Language?
Probably actionscript.
- 0x41
-
0x41
- Member since: Dec. 30, 2004
- Offline.
-
- Forum Stats
- Member
- Level 10
- Blank Slate
At 3/11/05 07:52 PM, vozz wrote:At 3/11/05 03:52 PM, 0x41 wrote: Language?Probably actionscript.
Yeah, I missed reading the word "flash" in his topic :-O
- TehBanStick
-
TehBanStick
- Member since: Apr. 13, 2004
- Offline.
-
- Forum Stats
- Member
- Level 17
- Blank Slate
Another fabulous TCStyle tutorial:
1) Make a movie clip, give it an instance name of "Health".
2) Now make a button, name it "Enemy". (the name doesn't really matter, but it's going to act as our enemy.
3) Now lets say that whenever we shot (aka click) our enemy, the health bar subtracts 5 pixels from the right (like most healthbars do).
4) add this code into your button:
on (press) {
_root.Health._xscale -=5;
}
12) now test you movie
abcdefghijklmnopqrstuvwxyz
- TheV
-
TheV
- Member since: Oct. 21, 2006
- Offline.
-
- Forum Stats
- Member
- Level 01
- Blank Slate
how do you change to different scene when healthbar reaches zero?
..and it subtracts pixels from both sides.
- Jessii
-
Jessii
- Member since: Feb. 10, 2005
- Offline.
-
- Forum Stats
- Member
- Level 36
- Movie Buff
Now you must move from the programming forum to the flash forum.
- Mister-Mind
-
Mister-Mind
- Member since: Jul. 1, 2006
- Offline.
-
- Forum Stats
- Member
- Level 07
- Blank Slate
woah, vozz was just banned.
eek,
I wounder what he did.
And what language are you using?
- Jordan
-
Jordan
- Member since: Apr. 23, 2006
- Offline.
-
- Forum Stats
- Member
- Level 14
- Blank Slate
At 11/3/06 04:22 PM, novalyfe wrote: woah, vozz was just banned.
If by "was just" you mean about a year ago, correct.
- Mister-Mind
-
Mister-Mind
- Member since: Jul. 1, 2006
- Offline.
-
- Forum Stats
- Member
- Level 07
- Blank Slate
At 11/3/06 04:26 PM, Jordan wrote:At 11/3/06 04:22 PM, novalyfe wrote: woah, vozz was just banned.If by "was just" you mean about a year ago, correct.
oops, my bad. I missed the time stamp. =P
Btw nice open source flash portal, XD
- Jessii
-
Jessii
- Member since: Feb. 10, 2005
- Offline.
-
- Forum Stats
- Member
- Level 36
- Movie Buff
At 11/3/06 04:26 PM, Jordan wrote: If by "was just" you mean about a year ago, correct.
Obviously. I hate when people bring back an old topic as if it just happened yesterday >:(
- Jordan
-
Jordan
- Member since: Apr. 23, 2006
- Offline.
-
- Forum Stats
- Member
- Level 14
- Blank Slate
At 11/3/06 04:29 PM, novalyfe wrote: Btw nice open source flash portal, XD
People say it doesn't work, but with the top-secret-super-hidden include file, it will work.
output_flash_portal() is a function, coded to output all the code for a flash portal.
- Afro-Ninja
-
Afro-Ninja
- Member since: Mar. 2, 2002
- Offline.
-
- Send Private Message
- Browse All Posts (13,458)
- Block
-
- Forum Stats
- Moderator
- Level 44
- Game Developer
- TheV
-
TheV
- Member since: Oct. 21, 2006
- Offline.
-
- Forum Stats
- Member
- Level 01
- Blank Slate
sorry, i didnt want to post a new topic. can someone pls still help me with that question?
- Afro-Ninja
-
Afro-Ninja
- Member since: Mar. 2, 2002
- Offline.
-
- Send Private Message
- Browse All Posts (13,458)
- Block
-
- Forum Stats
- Moderator
- Level 44
- Game Developer
At 11/3/06 05:14 PM, TheV wrote: sorry, i didnt want to post a new topic. can someone pls still help me with that question?
get flash help in the flash forum


