• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by graviton · Jan 11, 2013 at 09:55 PM · pushrollmechanicsavoid

god of war/dmc type evade mechanic

Hi I'm new to this community

I'm kinda stuck, trying to figure out how to add the evading roll (like when kratos or dante, roll in the direction the player chooses to avoid taking a hit)

I'm using a character controller, and I'll add the actual animation once I've finished creating the assets, for now I'm just trying to get the functionality down

any ideas?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image graviton · Jan 11, 2013 at 11:18 PM 0
Share

Loiuzein

thanks for replying

I'm not really sure what are saying

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Loius · Jan 11, 2013 at 10:01 PM

For a bit of time, instead of listening to player input, go fast in a direction while playing the animation.

"For a bit of time" - use a coroutine for simplicity, or just use a float var as a timer.

"Instead of listening to player input" -

 if ( dodging ) {
   GoFastInADirection(); // if using float timer - otherwise the coroutine will be handling this
 } else {
   ApplyPlayerInput();
 }

"Go fast in a direction" - .Move your controller by whatever is appropriate.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

(sidestepping, evading, rolling out of the way), how do I do that with a character controller 1 Answer

Rolling Cube with Rigidbody? 4 Answers

How to roll the ball? 1 Answer

Roll by rotating camera past 360 degrees on x axis 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges