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 /
avatar image
1
Question by Angel · Oct 06, 2010 at 11:12 PM · jumpitweenpathsplineside-scrolling

PutOnPath iTween spline but not restrict in the up direction (jump)

Hi, I'm using itween's PutOnPath for a 2.5D sidescroller but I was wondering if there was a way to constrain the the path only with the X/Z to be able to make the character "Jump"?

Thanks

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

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by pixelplacement · Oct 07, 2010 at 01:43 PM

Your best bet would be to encapsulate your character in an empty GameObject and place this "holder" on the path. That way you are free to cause your character to change his y axis while the cage around him leads him down the path.

I'd love to see what your come up with!

Comment
Add comment · Show 2 · 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 SrBilyon · Oct 13, 2010 at 02:48 AM 0
Share

I'm using the 2D platfor$$anonymous$$g example as my base, and when I try to do the thing you said above, the player gets stuck to the path and many other things go wrong. Is there a way I can use the path and the 2d platfor$$anonymous$$g script?

avatar image pixelplacement · Oct 14, 2010 at 01:48 AM 0
Share

This would take a little custom work as they are not intended to work in tandem. You would basically want to start by using the arrow keys to increases a percentage along the PutOnPath() once you have that working you would implement a "jump" action on the contained object that is being moved by the PutOnPath. Sorry if this is vague but you've asked a pretty hefty question that is going to require ground work on your end to build up to this desired effect. I'll think about putting this into an example for the support site.

avatar image
0

Answer by pixelplacement · Oct 17, 2010 at 05:09 AM

Just put an example together on the support site for iTween that I hope helps out with this. Hope it helps: http://itween.pixelplacement.com/examples.php

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 cregox · Dec 11, 2010 at 12:58 PM 0
Share

I bet that is "Path-constrained Characters", right?

avatar image
0

Answer by araz01 · Sep 12, 2018 at 06:11 AM

I HAVE THE ANSWER! Create an empty Object on the path of iTween and create a character that follows this object. improve it by adding the furthest and closes the distance, being 4 and 0 maybe or something and make it slowly catch up to the obj that moving. you character will still be able to jump it just follows the obj and looks EXTREMELY smooth and good, i have not tried this but this is what i am looking for, Thank the Heavenly Trinity that I was gifted this truth to see! finally, i can do what i have been trying to do in the past 4 minutes.

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

1 Person is following this question.

avatar image

Related Questions

Restrict a player's movement to a path for a 2.5D game that has curved paths 6 Answers

iTween Path Rotation 0 Answers

Follow curved path with dynamic speed 2 Answers

How do Move a gameobject along a path WITHOUT A SPLINE 1 Answer

iTween Camera Jitter while moving on path 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