Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 /
This question was closed Nov 22, 2021 at 09:02 PM by falconstrike209 for the following reason:

Problem is not reproducible or outdated, it was a bug with the editor, I restarted and everything fixed itself, haven't had the problem again since then

avatar image
0
Question by falconstrike209 · Jan 17, 2021 at 09:36 PM · animationunity 2djump

How do I fix this stupid jump animation not transitioning

I have a jump animation, which plays in up frame if the player is moving up, and a down frame if the player is moving down. this works fine. I transition into the jump animation by setting a bool "Jump" to true, and am trying to transition out by setting it to false. for some reason this doesn't work. Here's the code:

         if (groundCheck != null)
         {
             IsGrounded = true;
             animator.SetBool("Jump", false);
         }
         else if (groundCheck == null)
         {
             IsGrounded = false;
             animator.SetBool("Jump", true);
         }


that's it. I have no clue why this doesn't work. I even made the IsGrounded bool public to check on it, and it works fine, detecting when I'm in air and detecting when i'm on the ground. PLEASE HELP

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 $$anonymous$$ · Jan 18, 2021 at 04:39 AM 0
Share

What is the groundCheck var and please show the animator too.

1 Reply

  • Sort: 
avatar image
0

Answer by Aeneas_Ferguson · Jan 18, 2021 at 12:07 AM

@falconstrike209 Does your animator have a transition to another animation/state for the bool Jump,false? It could be helpful to watch your animator run during the game to see if the transition is happening to fast or not at all.

Comment
Add comment · Show 6 · 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
avatar image falconstrike209 · Jan 18, 2021 at 09:23 PM 0
Share

It has a transition with the bool, for some reason setting the bool to true or false in the transition conditions in the animator controller wasn't an option for me.

alt text

avatar image Aeneas_Ferguson · Jan 18, 2021 at 10:46 PM 0
Share

Ah, that might be the problem. If can't still can't set if after restarting Unity, then maybe file a bug report. With out the bool in the animator window, you can't set anying true/false.

avatar image falconstrike209 Aeneas_Ferguson · Jan 18, 2021 at 11:06 PM 0
Share

yeah, looking at the animator while running the game, even tho it transitions into the jump animation the bool doesn't get checked

avatar image Aeneas_Ferguson · Jan 18, 2021 at 11:25 PM 0
Share

Could you upload a short video of the animator when your game is running? I might be able to see the issue.

avatar image falconstrike209 Aeneas_Ferguson · Jan 19, 2021 at 10:05 PM 0
Share

Video Clip

avatar image Aeneas_Ferguson · Jan 20, 2021 at 01:55 AM 0
Share

"Any State is a special state which is always present. It exists for the situation where you want to go to a specific state regardless of which state you are currently in."- Unity manual. $$anonymous$$aybe don't try to transition to the jump animation with the "Any State". $$anonymous$$ake a bool that connects to "Jump" from "p2_Run" that is true, so they player can jump when running, and a bool that connects to "p2_Run" from "Jump" to set the bool jump false. If you only want the player to jump when not running, do the same thing but make the transition from "p2_idle" to "jump" (to set the jump bool true) and a transition from "Jump" to "p2_idle" to set the jumping bool false.

Follow this Question

Answers Answers and Comments

278 People are following this question.

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

Related Questions

Can I make animations snap to a frame? 1 Answer

Forward jumping 1 Answer

Need help with tool animations!! 1 Answer

I need help with an animation in unity 1 Answer

How to play one animation single time and then loop second animation? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges