• 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 Imposible · Jun 10, 2014 at 06:46 PM · movementphysicspath

Moving 2D Sprite Object in Curve path.

Hi everyone!

i am new on this Unity please help me on my problem...

my question is how can i perform my 2D object move is different position smoothly? what i mean is when i pressed letter "Q" it perform "Forward Jump" like this... illustrated on picture below

my question is not above playing animation.... im using rigidbody2D

Please help me... thanks a lot.

alt text

position.png (12.0 kB)
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

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Kiwasi · Jun 11, 2014 at 09:55 AM

Use rigidBody.addForce

Make the force in the direction you want to jump.

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
avatar image
0

Answer by SHG · Jun 10, 2014 at 06:57 PM

Well, you could make an animation for the curved path and play it when the player presses Q. And in animation states you can have it linked to any state so you can do that whenever. Its not a perfect answer, because I don't quite know what you want exactly.

 function Update () {
         if (Input.GetKeyDown ("Q")){
              animation.Play("CurvePath");
        }
 }
Comment
Add comment · Show 1 · 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 Imposible · Jun 11, 2014 at 07:34 AM 0
Share

Thanks for the response sir... sorry if my question is not clear....

i try to make it clear.... when the player presses the Letter "Q" the 2D Sprite Object is perfor$$anonymous$$g like a "Forward Jump" not an animation.... just an object going forward jump like the picture above sir...

hope it cleared now...

thanks

avatar image
0

Answer by siddharth3322 · Jun 11, 2014 at 05:05 PM

You can use iTween for this purpose or any other third party plugin for this purpose. So that you just don't have to do more labour work.

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
avatar image
0

Answer by Golkar_Asghar · Oct 19, 2021 at 09:41 AM

this question is very old but for everyone that needs this.

you can use a rigid body and add force to your characters.

if you want to move to a specific position use this: https://www.youtube.com/watch?v=ddakS7BgHRI&t=371s

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.

Follow this Question

Answers Answers and Comments

25 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

Related Questions

Strange Rigidbody Behavior 0 Answers

Authoritative Networking 2D Movement 0 Answers

Dynamic Path Generation for 2D 0 Answers

Continuously move ball on screen 1 Answer

water slide mini game unity 2 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