- Home /
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.
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.
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..
The solution would be the same whether they're premade waypoints in the editor or they're waypoints you set during the game.
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.
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.
Your answer

Follow this Question
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