Page 1 of 1
how do i make my character punch?

Posted:
Sat May 27, 2006 7:01 pm
by pavel329

Posted:
Sun May 28, 2006 3:42 am
by Just4Fun
Hi Pavel,
If I understand your question correctly, you would first need to create your 'punch' animation in a drawing program so that when you left click the mouse the 'punch' animation could be called.
After you have created your animation/s, it would be simple to use GE's "on mouse down" event with an action to "change animation". Then you would select the animation that you created.
HTHs...

Posted:
Mon May 29, 2006 2:34 pm
by pavel329
thank you for replying but really wat i am trying to do is make mario(he has a sword)hurt the enemy.only the sword not him.wat i mean is i don't want the whole actor to destroy the enemy just that one animation.is that possible?becuz when you use destroy actor by collision it always makes all of your animatios hurt the enemy.not just one.

Posted:
Mon May 29, 2006 2:56 pm
by Diana Kennedy
What you need to do is make of the sword a separate actor. And ad the necessary animations. So you can destroy the sword.

Posted:
Mon May 29, 2006 2:57 pm
by pavel329
why would i want to destroy my weapon?

Posted:
Mon May 29, 2006 3:00 pm
by Diana Kennedy
Sory, I misunderstood you. I tought you want the ennemys weapon be broken.

Posted:
Mon May 29, 2006 3:03 pm
by Diana Kennedy
I don't know if a collision-event can happen to only a particular animation within an actor. (would be a good feature)
You probaly will have to solve the problem by replacing the acator my a "killer-mario" and then replace him again. But maybe some kind of script can help. (not my speciality)

Posted:
Mon May 29, 2006 4:12 pm
by pavel329
so wat your saying is make the sword a different actor and make mario the swords parent?

Posted:
Mon May 29, 2006 4:58 pm
by Diana Kennedy
Yes. (If I am real sure that I understood you well.) It would be a good idea maybe to post some graphics and explain what exactly they are supposed to do.

Posted:
Mon May 29, 2006 5:03 pm
by pavel329
oh ok.i know wat to do now.thanx.