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
-2
Question by MikezNesh · Jul 12, 2010 at 05:55 AM · 2d-gameplaydrag-and-dropwaypoint

Moving to selected points....

I have some points spread across my scene and I want to add a script so that if someone drags from one of my points to another point my character will move to that point.

NOTE: I want the character to move from point to point only. Not randomly.

How can I do this?

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

1 Reply

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

Answer by Tetrad · Jul 12, 2010 at 07:53 AM

http://answers.unity3d.com/questions/tagged/pathfinding

http://answers.unity3d.com/search?q=waypoint

Lots of questions on this topic.

Comment
Add comment · Show 8 · 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 MikezNesh · Jul 12, 2010 at 08:12 PM 0
Share

I don't mean waypoints.... I mean I have some pre-made points and I want the character only able to move between those points (gameObjects). Like a guy moving from square to square..

avatar image Tetrad · Jul 12, 2010 at 08:25 PM 0
Share

The solution would be the same whether they're premade waypoints in the editor or they're waypoints you set during the game.

avatar image MikezNesh · Jul 12, 2010 at 08:31 PM 0
Share

Aren't waypoints for automatic moving only?

avatar image Tetrad · Jul 12, 2010 at 08:35 PM 0
Share

Depends on what you define waypoints to be. The problem associated with moving from position X to position Y is also solved by the waypoint system. The fact that going from Y to Z might be automatic in a "waypoint system" doesn't mean you can't look there for how to actually move the characters.

avatar image MikezNesh · Jul 12, 2010 at 08:44 PM 0
Share

Well I'm trying to build a 2D game where you have buildings and spawn units. Then you can send your units from one building to another.

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.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

GUI Buttons and game objects? 1 Answer

I need help with moving a character in Unity2D c# but just along a path 0 Answers

Drag and drop files into unity3d window? 2 Answers

drag n drop files from explorer to game 0 Answers

Is it possible to drag UI item from ScrollRect to elsewhere without mask blocking item? 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