Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
2
Question by Helipork · May 05, 2016 at 08:39 PM · 2dpathfindingisometricgrid based game

What is the easiest way to enable 2D isometric grid-based pathfinding?

I am currently working on some tactical-RPG-like game, and I've been struggling with finding an appropriate pathfinding system for the game.

What I want is pretty simple: The character in the attached image should be able to move to a clicked tile, either straight or diagonally, choosing the shortest possible path, while making sure to avoid those black tiles (these are all just placeholders, naturally, but black tiles represent impassable terrain). Movement is snapped to tiles, so he is forced to cross the center of each tile he walks through.

I'm quite the noob programmer, but I've been reading and trying to implement A* pathfinding system, which don't seem to cover every possible case (I based my code on this logic: https://www.raywenderlich.com/4946/introduction-to-a-pathfinding , but there still seem to be cases where the character won't choose the best path...unless I'm just not able to get it).

It would really help me if you guys could recommend a method, plugin, that would cover a project such as this!

Thank you very much for your time.

example-image.png (43.8 kB)
Comment
Add comment · Show 2
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 Helipork · May 05, 2016 at 08:52 PM 0
Share

I already have a working prototype WITHOUT obstacles, but as soon as obstacles come in, some arrangements simply break the system and keep the character from reaching its destination.

avatar image averyfollett · May 17, 2017 at 02:48 PM 0
Share

Can you explain how you got the pathfinding system working? I am working on a similar tactics based isometric game and am also struggling to find a pathfinding system that will work.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Helipork · May 14, 2016 at 02:57 PM

I've finally managed to implement some modified version of A* pathfinding system.

Comment
Add comment · 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
0

Answer by gamerko · Feb 26, 2019 at 05:08 AM

Hi.

I am creating a similar type of game.

Can I share a modified directions script?

thank you.

Comment
Add comment · 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

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

83 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

8 direction movement with mouse 0 Answers

2D Character in 3D Environment 1 Answer

One script stopped working after update 0 Answers

How to scaling (animation) elements in grid layout group (random) 0 Answers

How to make 2D tiled isometric map like a "clash of clans" 0 Answers


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