Search Unity

Pathfinding using txt + iTween

Discussion in 'Community Learning & Teaching' started by raiden, Sep 24, 2012.

  1. raiden

    raiden

    Joined:
    Feb 8, 2009
    Posts:
    333
    Hi all, it's been awhile since I've posted anything, but I wanted to share my version of pathfinding with you.

    What it does:
    • Allows you to easily and quickly build path directions via txt file plus iTween for path movement
    What it doesn't do:
    • I's a linear path, so no hill climbing, or gravity to surface

    Requirements:
    • Must have a parent game object named "LevelPath" for your nodes
    • Must have your nodes named "Node1", "Node2", "Node3", etc.
    • Must have your txt file named starting with the word "Level" + your game level number (1,2,3,etc.) + "Path" + your path number (1,2,3,etc)

    Be sure and download the sample project to help you with the setup. I hope you find it useful.

    Web Build: TextPath Build
    Project: TextPath Project

    Many thanks to Bob Berkebile and PixelPlacement for iTween.

    -Raiden
     
  2. TalhaDX

    TalhaDX

    Joined:
    Feb 2, 2013
    Posts:
    94
    This code will work in C Sharp..?? I have visual studio installed.
     
  3. raiden

    raiden

    Joined:
    Feb 8, 2009
    Posts:
    333
    Hi TalhaDX, the code is written in C#. You should have no issues using Visual Studio. Just open up any of the scripts in the project, if Visual Studio is your default editor, it should open right up.

    Hope that helps you out.

    -Raiden