Be a Supporter!

Health bar in flash Game

  • 729 Views
  • 15 Replies
New Topic
Silent-Murderer
Silent-Murderer
  • Member since: Oct. 26, 2004
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Health bar in flash Game 2005-03-11 15:51:41

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
Response to Health bar in flash Game 2005-03-11 15:52:20

Language?

<deleted>
Response to Health bar in flash Game 2005-03-11 19:52:39

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
Response to Health bar in flash Game 2005-03-11 20:04:18

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
Response to Health bar in flash Game 2005-03-12 19:13:00

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
Response to Health bar in flash Game 2006-11-03 16:17:18

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
Response to Health bar in flash Game 2006-11-03 16:20:17

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
Response to Health bar in flash Game 2006-11-03 16:22:00

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
Response to Health bar in flash Game 2006-11-03 16:26:19

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
Response to Health bar in flash Game 2006-11-03 16:29:56

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
Response to Health bar in flash Game 2006-11-03 16:30:35

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
Response to Health bar in flash Game 2006-11-03 16:33:56

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.
Forum Stats
Moderator
Level 44
Game Developer
Response to Health bar in flash Game 2006-11-03 16:56:16

too old to lock, just ignore it


BBS Signature
TheV
TheV
  • Member since: Oct. 21, 2006
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to Health bar in flash Game 2006-11-03 17:14:44

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.
Forum Stats
Moderator
Level 44
Game Developer
Response to Health bar in flash Game 2006-11-03 19:23:53

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


BBS Signature