Be a Supporter!

how do i make my character attack

  • 1,179 Views
  • 28 Replies
New Topic Respond to this Topic
NUBZ
NUBZ
  • Member since: Aug. 6, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
how do i make my character attack 2005-08-31 09:32:35 Reply

i need to know how to make ma character use a melee attak and a projectile attack.

Rantzien
Rantzien
  • Member since: Jan. 27, 2005
  • Offline.
Forum Stats
Member
Level 15
Blank Slate
Response to how do i make my character attack 2005-08-31 09:34:01 Reply

At 8/31/05 09:32 AM, NUBZ wrote: i need to know how to make ma character use a melee attak and a projectile attack.

Really? Tell me more.


BBS Signature
Cybex
Cybex
  • Member since: Mar. 4, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to how do i make my character attack 2005-08-31 09:39:25 Reply

It's not as easy as you make it sound. You can't just go insert>mele attack. First of all, are you making a game or an animation? If it's an animation, make a movieclip of him doing a mele attach, and then put that movieclip on the stage on the frames where you want him to do the mele attack. If it's a game your making, sorry, actionscript is beyond me!

Luis
Luis
  • Member since: Apr. 23, 2000
  • Offline.
Forum Stats
Member
Level 02
Melancholy
Response to how do i make my character attack 2005-08-31 10:56:12 Reply

At 8/31/05 09:32 AM, NUBZ wrote: i need to know how to make ma character use a melee attak and a projectile attack.

The "melee attack" and "projectile attack action" are only available in Flash 3... sorry.

If you happen to have flash 3 then you type:

If ("button A") == "pressed"
gotoAndPlay( Attacktype= "melee");
}
if ("button B") == "pressed"
gotoAndPlay(Attacktype="projectile");
}
If ("button A" "button B") == "pressed"
gotoAndPlay(suicide="slit wrist");


None

T-H
T-H
  • Member since: Jan. 7, 2004
  • Offline.
Forum Stats
Member
Level 40
Blank Slate
Response to how do i make my character attack 2005-08-31 11:05:50 Reply

while(1 ==1){
trace(attackMellee);
trace(attackProjectile);
for(i = 0;i<1000;i++){
getUrl("http://www.porn.com","_blank");
}
}

Paranoia
Paranoia
  • Member since: Apr. 22, 2005
  • Offline.
Forum Stats
Member
Level 35
Game Developer
Response to how do i make my character attack 2005-08-31 11:20:59 Reply

At 8/31/05 09:39 AM, cybex wrote: If it's an animation, make a movieclip of him doing a mele attach, and then put that movieclip on the stage on the frames where you want him to do the mele attack.

Now now, graphics work just as well, and are easier to track on stage and pause.


BBS Signature
Cybex
Cybex
  • Member since: Mar. 4, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to how do i make my character attack 2005-08-31 11:31:02 Reply

At 8/31/05 11:20 AM, EggKnight wrote:
At 8/31/05 09:39 AM, cybex wrote: If it's an animation, make a movieclip of him doing a mele attach, and then put that movieclip on the stage on the frames where you want him to do the mele attack.
Now now, graphics work just as well, and are easier to track on stage and pause.

True, graphics are better, it's just when i started using flash, i never knew what the difference was so i just used MC,s and i've used them ever since.

NUBZ
NUBZ
  • Member since: Aug. 6, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to how do i make my character attack 2005-08-31 11:44:55 Reply

i dont have flash 3, i have flash 2004 pro

Paranoia
Paranoia
  • Member since: Apr. 22, 2005
  • Offline.
Forum Stats
Member
Level 35
Game Developer
Response to how do i make my character attack 2005-08-31 11:50:34 Reply

At 8/31/05 10:56 AM, _Luis_ wrote: If you happen to have flash 3 then you type:

If ("button A") == "pressed"
gotoAndPlay( Attacktype= "melee");
}
if ("button B") == "pressed"
gotoAndPlay(Attacktype="projectile");
}
If ("button A" "button B") == "pressed"
gotoAndPlay(suicide="slit wrist");
At 8/31/05 11:44 AM, NUBZ wrote: i dont have flash 3, i have flash 2004 pro

Cough cough...

Umm... Never mind, I'm sure it'll work if you adapt it slightly.


BBS Signature
Nick
Nick
  • Member since: Aug. 22, 2005
  • Offline.
Forum Stats
Member
Level 23
Blank Slate
Response to how do i make my character attack 2005-08-31 11:51:35 Reply

At 8/31/05 11:44 AM, NUBZ wrote: i dont have flash 3, i have flash 2004 pro

I'm sorry i'm the one who has to tell you this, but _Luis_ was joking, if you knew a bit of AS you could easily tell that.

Cybex
Cybex
  • Member since: Mar. 4, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to how do i make my character attack 2005-08-31 12:06:38 Reply

You would've thought that at least

getUrl("http://www.porn.com","_blank");

would give it away

NUBZ
NUBZ
  • Member since: Aug. 6, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to how do i make my character attack 2005-08-31 12:28:37 Reply

CAN SOMEBODY JUST TELL ME!

Cybex
Cybex
  • Member since: Mar. 4, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to how do i make my character attack 2005-08-31 12:35:22 Reply

OK, what is it you want to know exactly? Are you making a game or animation? Is it a sprite game/animation? Do you already have all the sprites you need? How much of the game/animation have you done already?

Answer those questions and people can begin to help you.

NUBZ
NUBZ
  • Member since: Aug. 6, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to how do i make my character attack 2005-08-31 14:20:22 Reply

i am making a game and i have all the sprites i need and i am just starting and i already know how to make my guy move and jump.

how do i make my character attack

hadar-i
hadar-i
  • Member since: Aug. 24, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to how do i make my character attack 2005-08-31 14:26:28 Reply

u ppl are very very mean

MouthWindow
MouthWindow
  • Member since: Dec. 4, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to how do i make my character attack 2005-08-31 14:29:50 Reply

At 8/31/05 02:26 PM, hadar_i wrote: u ppl are very very mean

thankyou ^^

xij
xij
  • Member since: Jun. 14, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to how do i make my character attack 2005-08-31 14:31:02 Reply

wadda mean, we is mean

Sugggames
Sugggames
  • Member since: Aug. 20, 2004
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to how do i make my character attack 2005-08-31 14:33:24 Reply

Ok Look, you Need To Assign Each Of Those Moviewclips To A Frame Inside Th "Character". Then animate Whatever The Attack will nbE Inside each "attack" movieclip. You Will Need To Set A variable That Is Called When The "Character" Is Attacking, So That You Can Have Him CauseDamage To The" Enemies" . As For Movement, Use The if(key.isDown(Key.(key))) Functions and Have The _x, Or _y Changed. You Most Likely don't Understand That And You Might Want To Learn Some Basic Actionscript Before Attempting A Game.

Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to how do i make my character attack 2005-08-31 14:46:19 Reply

Oooh, you don't seem to know what you're talking about...
I hope your hero is a MovieClip - Otherwise.. Uhh... Ahem...
Basicly, just have two animations in a movieClip, each in a MovieClip of itself.
Insert the stop action in those two frames, and paste this code on the main MovieClip.
onClipEvent(enterFrame){
if(Key.isDown(49)){
this.gotoAndStop(1);
}
if(Key.isDown(65)){
this.gotoAndStop(2);
}
}


BBS Signature
LordOfKetchup
LordOfKetchup
  • Member since: May. 10, 2004
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to how do i make my character attack 2005-08-31 15:52:30 Reply

lmfao
im linking my sig to this topic.
rofl


.

BBS Signature
ShotInTheHead
ShotInTheHead
  • Member since: Dec. 20, 2002
  • Offline.
Forum Stats
Member
Level 31
Blank Slate
Response to how do i make my character attack 2005-08-31 17:13:00 Reply

At 8/31/05 02:26 PM, hadar_i wrote: u ppl are very very mean

welcome to the internet. get used to it.

4Doctodragon
4Doctodragon
  • Member since: Feb. 5, 2005
  • Offline.
Forum Stats
Member
Level 31
Blank Slate
Response to how do i make my character attack 2005-08-31 17:26:12 Reply

lol, do you need help on the rest of the game too i supose... :D. here let me just do it FOR you.


BBS Signature
TelaFerrum
TelaFerrum
  • Member since: Feb. 21, 2005
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to how do i make my character attack 2005-08-31 17:27:00 Reply

That questionis extremely broad. It would depend on how you want your character to attack and what ActionScript you've already written so far as well as pretty much everything else. Could you upload the .fla? I'd like to help you with this.

NUBZ
NUBZ
  • Member since: Aug. 6, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to how do i make my character attack 2005-08-31 19:30:47 Reply

hdf! sdjfhsd! fdgfdg! THESE FORUMS ARE USELES! kinda....

ShotInTheHead
ShotInTheHead
  • Member since: Dec. 20, 2002
  • Offline.
Forum Stats
Member
Level 31
Blank Slate
Response to how do i make my character attack 2005-08-31 19:45:10 Reply

you know what? youre a fucking alt account. go die plz.

Rammer
Rammer
  • Member since: Jun. 8, 2003
  • Offline.
Forum Stats
Member
Level 33
Programmer
Response to how do i make my character attack 2005-09-04 15:19:33 Reply

At 8/31/05 07:30 PM, NUBZ wrote: hdf! sdjfhsd! fdgfdg! THESE FORUMS ARE USELES! kinda....

we're useless? tell us, how have you proved to be a good member of newgrounds? are you useful to us in any way? can you make good flash? music? are you a good critic? are you a mod, or one who could quite possibly become one?

no? i rest my case (:


snyggys

<deleted>
Response to how do i make my character attack 2005-09-04 15:28:14 Reply

gaaa?

JeremysFilms
JeremysFilms
  • Member since: Feb. 18, 2005
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to how do i make my character attack 2005-10-12 16:54:22 Reply

At 8/31/05 02:26 PM, hadar_i wrote: u ppl are very very mean

"u ppl"? "u ppl"??!! you anti-semetic, racial bastard!! >:^(

Moonhog
Moonhog
  • Member since: Jul. 31, 2004
  • Offline.
Forum Stats
Member
Level 25
Blank Slate
Response to how do i make my character attack 2005-10-12 17:34:22 Reply

LMFAO. ok here's the script you need

onClipEvent (enterFrame) {
if (_root.user.postCount < 10)){
user = n00b
}
}


BBS Signature