how do i make my character attack
- NUBZ
-
NUBZ
- Member since: Aug. 6, 2005
- Offline.
-
- Forum Stats
- Member
- Level 04
- Blank Slate
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
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.
- Cybex
-
Cybex
- Member since: Mar. 4, 2005
- Offline.
-
- Forum Stats
- Member
- Level 20
- Blank Slate
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.
-
- Send Private Message
- Browse All Posts (17,261)
- Block
-
- Forum Stats
- Member
- Level 02
- Melancholy
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
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
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.
- Cybex
-
Cybex
- Member since: Mar. 4, 2005
- Offline.
-
- Forum Stats
- Member
- Level 20
- Blank Slate
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
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
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.
- Nick
-
Nick
- Member since: Aug. 22, 2005
- Offline.
-
- Forum Stats
- Member
- Level 23
- Blank Slate
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
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
- Cybex
-
Cybex
- Member since: Mar. 4, 2005
- Offline.
-
- Forum Stats
- Member
- Level 20
- Blank Slate
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
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.
- hadar-i
-
hadar-i
- Member since: Aug. 24, 2005
- Offline.
-
- Forum Stats
- Member
- Level 04
- Blank Slate
- MouthWindow
-
MouthWindow
- Member since: Dec. 4, 2004
- Offline.
-
- Forum Stats
- Member
- Level 08
- Blank Slate
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
- Sugggames
-
Sugggames
- Member since: Aug. 20, 2004
- Offline.
-
- Forum Stats
- Member
- Level 12
- Blank Slate
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
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);
}
}
- LordOfKetchup
-
LordOfKetchup
- Member since: May. 10, 2004
- Offline.
-
- Forum Stats
- Member
- Level 17
- Blank Slate
lmfao
im linking my sig to this topic.
rofl
.
- ShotInTheHead
-
ShotInTheHead
- Member since: Dec. 20, 2002
- Offline.
-
- Forum Stats
- Member
- Level 31
- Blank Slate
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.
-
- Send Private Message
- Browse All Posts (12,220)
- Block
-
- Forum Stats
- Member
- Level 31
- Blank Slate
lol, do you need help on the rest of the game too i supose... :D. here let me just do it FOR you.
- TelaFerrum
-
TelaFerrum
- Member since: Feb. 21, 2005
- Offline.
-
- Forum Stats
- Member
- Level 06
- Blank Slate
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
hdf! sdjfhsd! fdgfdg! THESE FORUMS ARE USELES! kinda....
- ShotInTheHead
-
ShotInTheHead
- Member since: Dec. 20, 2002
- Offline.
-
- Forum Stats
- Member
- Level 31
- Blank Slate
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
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
- JeremysFilms
-
JeremysFilms
- Member since: Feb. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 18
- Blank Slate
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
LMFAO. ok here's the script you need
onClipEvent (enterFrame) {
if (_root.user.postCount < 10)){
user = n00b
}
}

