• 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 bundy2k6 · Apr 12, 2013 at 11:56 AM · platformer2.5d

2.5D Game multiple paths(routes)

Hey Guys,

I am doing a project for college and my knowlege of code is minimal. I downloaded the advanced 2.5D Platformer package to help me get started. Basically I am making a 2.5D game set in a cave. I have the character moving jumping ect but I want him to be able to choose different paths, i.e take high ground over low ground or stick to the middle route. In short I would love to know how to make various paths that the player can choose to take.

http://imageshack.us/photo/my-images/600/multipaths.jpg/

As it is 2.5D he is also constrained so there is no 4 or 8 way movement, I simply want the player to choose a path

Cheers everyone!

All help much apprichiated!

Comment
Add comment · Show 2
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 bundy2k6 · Apr 12, 2013 at 03:09 PM 1
Share

I know it is but I am at a super basic level, not much else I can do but ask for help. I was looking at iTween and the spline controller but both make take control from the character, I still want to control the character but follow the path when you walk in that direction. Sorry about the super general "how to code" style of questioning!

avatar image robertbu · Apr 12, 2013 at 03:12 PM 0
Share

Answers are for answers to your question. Using them for comments marks your question as having an answer and therefore will be less likely to get an answer. I've converted your question to a comment for you this time.

1 Reply

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

Answer by robertbu · Apr 12, 2013 at 03:16 PM

If you want to use iTween, you can use iTween.PutOnPath() and/or iTween.PointOnPath(). You would then manage the 'fraction' parameter in your code to make the character move along the specified path. As for selecting among multiple paths, just create an array of paths and then use Random.Range() to select which path. Note that the integer version of of Random.Range() is exclusive of the max value.

I answered a question awhile back that had a car switching between different iTween paths. Some of the logic in that question might help with your project:

http://answers.unity3d.com/questions/408334/itween-path-swap.html

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 bundy2k6 · Apr 12, 2013 at 03:40 PM 1
Share

Hey robertbu, just want to say thanks amillion for giving me a hand! Completely new to this and have very basic Unity skills, thanks for taking the time! At least I have a point to start now, cheers buddy!

Alan

avatar image bundy2k6 · Apr 12, 2013 at 03:53 PM 1
Share

Cheers guys! New to this, next questiouns will be glorious!

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

11 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

Related Questions

2.5d platform one way 0 Answers

Locking the Z-axis based on direction 0 Answers

Circular (Inside cylinder) World for 2d Platformer 1 Answer

rotate character in 2.5D 1 Answer

Only look at the moveDirection of Z-axis 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