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
0
Question by Uriel_96 · Apr 25, 2011 at 03:58 PM · javascriptmovementpathwall

Player walk in a certain path

I want to make a movement that player can walks only some specific places, some thing like this: First the movement of the player is normal(he moves depending the camera rotation something like Splinter Cells games) and I want that when the player enters to a points that are making a cube the player can only walk in that certain path.

Another example of this application: suppose that I have a wall and the player climbs the wall or tube like here at 2:48, as you can see the player can only move on a certain path, but remember that my movement depends on the camera so please don't put a question saying that block forward and backward movement, so my question is how can I do this?

Note: JavaScript please

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 Scribe · Apr 25, 2011 at 05:19 PM 1
Share

i have no idea but I love that game

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Chris D · Apr 25, 2011 at 05:09 PM

Though i haven't tried it myself, from what I understand, this is the kind of thing iTween excels at. Check out the MoveTo function here:

http://itween.pixelplacement.com/documentation.php#MoveTo

If you set your character to enter into a set animation once it hits some sort of trigger, it seems to me this solution could work.

EDIT:

looking a little deeper, it seems there's even a graphical path editor: http://pixelplacement.com/2010/12/03/visual-editor-for-itween-motion-paths/

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 Uriel_96 · Apr 25, 2011 at 05:42 PM 0
Share

but this brings me a problem, I already know about iTween, but the problem is the camera, because I can simply set that move right and left, but not, using a movement based on camera is different, so please who I can do this with my movement

avatar image Chris D · Apr 29, 2011 at 04:59 PM 0
Share

Are you saying that your camera can currently only move left and right? If, like in the video, you're using a third-person view that gives the camera lots of freedom of movement, I'd suggest setting a similar kind of trigger for it as you would for your character. That's to say that when your player enters the trigger zone and begins his iTween movement, the camera will begin a similar movement path. Does that make sense?

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

No one has followed this question yet.

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Can someone help me fix my Javascript for Flickering Light? 6 Answers

Setting Scroll View Width GUILayout 1 Answer

Converting from moving local space to world space 0 Answers

Grid Based Movement (Pokemon-like) 1 Answer


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