• 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 isaacj11 · Jan 25, 2015 at 03:47 PM · animationguibuttonparticles

How to hook up the particle system to jump animation?

Hello, I made my animations in a separate 3d program. I want the particles to be appeared when jumped.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Mmmpies · Jan 26, 2015 at 11:29 AM

Ha just worked out t$$anonymous$$s is already posted @isaacj11 and not it moderation. I really shouldn't work on a phone as I miss too much obvious stuff.

OK not an expert on the legacy animator but if the other animations are working can't you just do t$$anonymous$$s:

 if ( rotateJoystick.tapCount == 2 )
 {
     // Apply the current movement to launch velocity
     velocity = character.velocity;
     velocity.y = jumpSpeed;
     animation.CrossFade("jump");
 }

You could even copy the needed lines into your movement script to keep it all neat.

Comment
Add comment · Show 13 · 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 Mmmpies · Jan 27, 2015 at 08:54 AM 0
Share

What line number is that error message showing at?

avatar image isaacj11 · Jan 27, 2015 at 09:14 AM 0
Share

NullReferenceException: Object reference not set to an instance of an object CharacterAnimation.Update () (at Assets/Scripts/CharacterAnimation.js:44) I think line 44

avatar image Mmmpies · Jan 27, 2015 at 09:20 AM 0
Share

So the only things on that line that can possibly be causing the error are rotateJoystick or tapCount, look in the original file and search for all references to those items.

Copy the way they're referenced from that script. Or leave the full script in place and just add your animation to it.

avatar image isaacj11 · Jan 27, 2015 at 09:27 AM 0
Share

how do I do it :(, do you want me to send a demo model with run and jump animations and can you implement those into unity with this script and try it out? can you please find a solution for me?

avatar image Mmmpies · Jan 27, 2015 at 09:33 AM 0
Share

Not got access to Unity ATM but post any line in the jump script from that dual joystick that includes either rotateJoystick or tapCount.

I suspect rotateJoystick is the one that's causing it but post those lines and I'll show you which ones are needed to add to your script.

Show more comments

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Unity 5 GUI system 1 Answer

How to give animation to the on gui button? 1 Answer

Touch GUI texture to toogle animation 0 Answers

Buttons remain in pressed state upon performing home interrupt 0 Answers

Animator.Update High CPU Usage on Unity 5 resulting in bugs on Android 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