• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Tile based pathfinding

New Here ,
Mar 26, 2014 Mar 26, 2014

Copy link to clipboard

Copied

Allright i am about to start working on something that i have never tried before. I am making a tile based game which is set up with a two-dimensional array.

0 in the array represents wall tiles which aren't walkable.

1 in the array represents path tiles which can be walked on.

I would like to add some enemies to the game which i want to have following the character. The enemies must follow the character by walking on the shortest route possibly. I have tried looking into path-finding but it seems quite complex. If anyone has some advice on how i would go about doing this, i would very much love to hear. Maybe if someone can recommend a good tutorial that would be nice.

Thanks in advance!

TOPICS
ActionScript

Views

472

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 26, 2014 Mar 26, 2014

Copy link to clipboard

Copied

LATEST

Here's your typical A* pathfinding explained:

http://www.raywenderlich.com/4946/introduction-to-a-pathfinding

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines