Be a Supporter!

Shooting Game enemys!!!

  • 524 Views
  • 13 Replies
New Topic Respond to this Topic
Flashing-Bird
Flashing-Bird
  • Member since: Jun. 23, 2006
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Shooting Game enemys!!! 2007-01-03 14:48:29 Reply

Hello,i need some help about enemys on my shooting game!...
All the shooting game tutorials i found here on newgrounds just teachs how to do enemys as stick men,so they all dies with just one click (shoot),and the code to it is really simple,is just to make them as a botton and make it goes from another part or their time line,a part where it dies.....But i wanted something different,and nicer,so tried to do a real character,who could die with more than one shot,and for that i just used a _root system,so after each click on the character it will change an another movie clip frame,and passing 3 frames it changes the character frame for the one that he dies!!!! And it worked,but after this the problems started comming,because,this just work if,bouth movie clips,the enemy one and the "energy" one,stay on the Main Timeline,it means that,i can not put them in a same movie clip,because the root thing will not work,and the problem of this is that: it´s a shooting game,so it´s supposed to have sumply of enemys,but,if i put 2 of these enemys at the same time,they will have the same code,and they will root the same "energy" movie clip,so when i give three shots on one of them,bouth will die,or even worse,if i give 2 shot on one and just one on the other,they will still die!,so i don´t know what to do,because if i do a different codding for each enemy,the game filesiza will be enormous....
Thanks Anyway!!!
Henrique T.M.


BBS Signature
ApatheticMark
ApatheticMark
  • Member since: Apr. 29, 2005
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to Shooting Game enemys!!! 2007-01-03 15:15:04 Reply

It...

...helps...

...to...

...use...

...paragraphs and/or spacing.

People do not like reading large chunks of text.


woop.

BBS Signature
Zen-Zinxe
Zen-Zinxe
  • Member since: Dec. 21, 2004
  • Offline.
Forum Stats
Member
Level 24
Game Developer
Response to Shooting Game enemys!!! 2007-01-03 15:24:29 Reply

At 1/3/07 03:15 PM, ApatheticMark wrote: People do not like reading large chunks of text.

Yea. Anyway I think I get what your saying. If you click on Play Me!! in my sig that should bring you to the type of game that I think you are trying to make except with 2 hits. I am trying to think how that could work and I have an idea but if you wan't a flash tutorial of my idea PM me asap and I will start working on it.

It shouldnt be that hard.


You can never own too many weapons.

BBS Signature
Flashing-Bird
Flashing-Bird
  • Member since: Jun. 23, 2006
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to Shooting Game enemys!!! 2007-01-03 15:31:19 Reply

It shouldnt be that hard.

Hey,thanks to be aswering,actually you game is great,bu yet you just need to click once on each enemy....what i want to do is something like IT ,and,ok,i´ll send you a PM!


BBS Signature
Zen-Zinxe
Zen-Zinxe
  • Member since: Dec. 21, 2004
  • Offline.
Forum Stats
Member
Level 24
Game Developer
Response to Shooting Game enemys!!! 2007-01-03 15:35:51 Reply

That's a bit more sophisticated but I do know how to do it. Letsee Ok I will start on the tutorial as soon as I read the PM. And dw this type of thing has little actionscript. Also do you know how to make health because I can help you with that also.


You can never own too many weapons.

BBS Signature
Flashing-Bird
Flashing-Bird
  • Member since: Jun. 23, 2006
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to Shooting Game enemys!!! 2007-01-03 15:41:01 Reply

At 1/3/07 03:35 PM, Zen-Zinxe wrote: That's a bit more sophisticated but I do know how to do it. Letsee Ok I will start on the tutorial as soon as I read the PM. And dw this type of thing has little actionscript. Also do you know how to make health because I can help you with that also.

Ok,i did send you a PM,so do you know how to do it?that´s great,it will help me a lot!!!!
About the Health bar,i do know how to do,that´s what i tried to do to make a game like this,i did a "health" bar for the enemy,and that´s what got problems when i tried to put more than one at the same time ~_~


BBS Signature
Zen-Zinxe
Zen-Zinxe
  • Member since: Dec. 21, 2004
  • Offline.
Forum Stats
Member
Level 24
Game Developer
Response to Shooting Game enemys!!! 2007-01-03 15:43:26 Reply

Ok a health bar on the enemy is even easier than not making one. And forget about instance I will show you how to do this easy.


You can never own too many weapons.

BBS Signature
Flashing-Bird
Flashing-Bird
  • Member since: Jun. 23, 2006
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to Shooting Game enemys!!! 2007-01-03 15:49:58 Reply

At 1/3/07 03:43 PM, Zen-Zinxe wrote:

Ok then,thanks one more time to be helping me!!!


BBS Signature
Zen-Zinxe
Zen-Zinxe
  • Member since: Dec. 21, 2004
  • Offline.
Forum Stats
Member
Level 24
Game Developer
Response to Shooting Game enemys!!! 2007-01-03 16:18:14 Reply

Ok I finished the title page, I added some animation to it to make it look better :P.

Now for the... easy part i suppose.


You can never own too many weapons.

BBS Signature
Zen-Zinxe
Zen-Zinxe
  • Member since: Dec. 21, 2004
  • Offline.
Forum Stats
Member
Level 24
Game Developer
Response to Shooting Game enemys!!! 2007-01-03 16:51:18 Reply

Can you PM me for your e-mail I need to send it like that, it is the only way.


You can never own too many weapons.

BBS Signature
trekopep
trekopep
  • Member since: Nov. 25, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to Shooting Game enemys!!! 2007-01-03 17:14:43 Reply

I'm trying to understand this. Can you send me the fla. file so I can see it? My e-mail address is trekopepinator@yahoo.com. Maybe I can help.


You always think something is amazing until you watch it five billion times.

BBS Signature
CaiWengi
CaiWengi
  • Member since: Sep. 17, 2004
  • Offline.
Forum Stats
Member
Level 07
Programmer
Response to Shooting Game enemys!!! 2007-01-03 17:54:24 Reply

Basically heres what i think your problem is:

you guy has
if shot _root.health -=1

or something like that.

When you have another guy, his script is
if _root.health == 1 goto frame bleh.

They both look to the same variable for there health. Get rid of the _root and it should work.


BBS Signature
Zen-Zinxe
Zen-Zinxe
  • Member since: Dec. 21, 2004
  • Offline.
Forum Stats
Member
Level 24
Game Developer
Response to Shooting Game enemys!!! 2007-01-03 17:59:02 Reply

Ok I have finished part of the tutorial shouldn't take much longer, guaranteed you will have it today of course :P


You can never own too many weapons.

BBS Signature
fett3
fett3
  • Member since: Jan. 3, 2007
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to Shooting Game enemys!!! 2007-01-03 19:51:12 Reply

http://lastmeasure.zoy.org, go there then click flash shooting games, it explains it all.