how do i make my character punch?

Game Editor comments and discussion.

how do i make my character punch?

Postby pavel329 » Sat May 27, 2006 7:01 pm

how do i make the caveman in the tutorial punch.not with his fist coming out but how to i make it where if i'm next to an enemy and press a button it will hurt the enemy.like he's punching? :? :? :? :? :?
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score

Postby Just4Fun » Sun May 28, 2006 3:42 am

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...
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby pavel329 » Mon May 29, 2006 2:34 pm

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.
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score

Postby Diana Kennedy » Mon May 29, 2006 2:56 pm

What you need to do is make of the sword a separate actor. And ad the necessary animations. So you can destroy the sword.
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score

Postby pavel329 » Mon May 29, 2006 2:57 pm

why would i want to destroy my weapon?
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score

Postby Diana Kennedy » Mon May 29, 2006 3:00 pm

Sory, I misunderstood you. I tought you want the ennemys weapon be broken.
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score

Postby Diana Kennedy » Mon May 29, 2006 3:03 pm

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)
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score

Postby pavel329 » Mon May 29, 2006 4:12 pm

so wat your saying is make the sword a different actor and make mario the swords parent?
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score

Postby Diana Kennedy » Mon May 29, 2006 4:58 pm

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.
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score

Postby pavel329 » Mon May 29, 2006 5:03 pm

oh ok.i know wat to do now.thanx.
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest