-
Need help on character attacking
i need help making my character attack by using mouse left click
it goes from char to right hand to then the attack tween. what is the code?
what is the code for the enemy to attack u?
-
Flash/Flex Developer
Can you provide an example, hard to understand what you're asking.
Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.
-
Originally Posted by samac1068
Can you provide an example, hard to understand what you're asking.
forget about the first one then its to confusing lol
how do u make the enemy attack you?
cuz i got the AI and hp part right.
-
What he is trying to say is... When there is Main Character. Then how do you make the character movieclip attack with the mouse clicking function and when the main character does a hitTest on the enemy movieclip. The enemy movieclip will have a certain frame in it that will show the enemy attacking.
I used to know the code. Forgotten it
-
Intermediate Game Dev
This is confusing....please post the *.fla so we can see what you have got so far...
Needs an update...
-
You know those flash games like Hero RPG by Micheal Nuemann?
Just google it It's like a top viewed game and you'll need to click with your mouse to attack. That's basically what Angel_Boi is trying to say
-
Originally Posted by Angel_Boi
i need help making my character attack by using mouse left click
it goes from char to right hand to then the attack tween. what is the code?
what is the code for the enemy to attack u?
Okay I think I got the attacking code for your main charater attacking with a mouse click.
-
Code:
onClipEvent(mousedown){
_root.Character.Sword.gotoAndPlay(2);
}
Example. Please post if the code is wrong or it has case sensitive okay?
-
For the enemy attacking...
It should be like...
Code:
onClipEvent(load){
_root.enemy.hitTest(this){
gotoAndPlay(2);
}
}
Something like that. I haven't check =(
I should though. Wait a little while
-
Intermediate Game Dev
^no...
PHP Code:
onClipEvent(enterFrame){ if (_root.enemy.hitTest(this) == true) { this.gotoAndPlay(2); } }
Needs an update...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|