- Home /
Move character to specific tiles on map.
I really want to be able to move my character to specific points on the map (sort of like Tile Based Map & Nav) but I have no idea where to start. Any help or code would be very appreciated :)
This will depend on what you mean by "move" and the nature of your game. Do you mean move over time or do you mean instantly transport? How are your tiles defined/created?
"$$anonymous$$ove" as in walk to that specific spot on the map (over time). And I have no idea how to even start doing tiles for movement whatsoever.
Answer by robertbu · Feb 14, 2013 at 05:26 PM
This type of movement is typically done with Vector3.MoveTowards() or Vector3.Lerp(). Each frame, you move a bit towards your target. If you search the list you will find 1000's of questions and answers for Lerp and MoveTowards. Here is one link to a simple script:
http://answers.unity3d.com/questions/179605/moving-an-object-towards-another-moving-object.html
Your answer
Follow this Question
Related Questions
Simple RTS movement offset 0 Answers
What`s more expensive GUI Texures or Quads for displaying units health?(RTS) 1 Answer
RTS movement with walking animation. 1 Answer
Raycast based tile navigation 0 Answers
Object Squeezing Between Tiles 0 Answers