x


Best way to handle 2.5d punch attack?

I'm just trying to figure out the best way to go about making a punch attack in a 2.5d game (so it only needs to punch left or right). I can get to the point where pressing Fire1 would perform an action but do not know what I should do next.

more ▼

asked May 08 '12 at 08:44 PM

lazerus250 gravatar image

lazerus250
3 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You could use a kinematic collider/trigger, linecast or overlapsphere for example to figure out which object you hit relative to your position.

You could use sendmessage to alert objects they been punched so they could respond to the punch.

To make the character do an animation, use animation.Play.

To play a sound, use audio.Play.

more ▼

answered May 09 '12 at 12:29 AM

Statement gravatar image

Statement ♦♦
20.1k 35 70 175

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x155
x71
x62
x11

asked: May 08 '12 at 08:44 PM

Seen: 461 times

Last Updated: May 09 '12 at 12:30 AM