2D Pathfinding with platformer
I'm working on developing a game that would require the player to move to a specific point on the screen based on a mouse click/touch. The game will essentially be a turn-based, platformer that is laid out on a grid. Paths won't be too long, only a few grid squares at time, so not super intensive pathfinding. I've been looking for information on how I can make that mechanic work, but I'm not knowledgeable enough to know what would work best for my game and with Unity. I did find this Platformer Pathfinding asset in the store, but it's a bit old and I'm not sure it will work. Does anyone have any suggestions on how I could implement this kind of mechanic (with the mentioned asset or otherwise)?
Yes. Just updated the post before I saw your response.
Answer by LeonardNS · Oct 08, 2018 at 06:28 PM
I will assume there are some obstacles to avoid. For such small distances, A* search is sufficiently strong and easy to implement pathfinding algorithm.
Thanks for that. I have seen information about A* online but wasn't sure it was something that could be implemented within Unity. Do you know of any good online resources for that? I can Google them of course but if you have actual experience, that would be great to know. Thanks!
Your answer
Follow this Question
Related Questions
Rising platform generation as player gets close 1 Answer
Using stairs in 3D grid-based pathfinding (A*)? 0 Answers
platformEffector2D pushing character upward,Platform Effector 2D pushing character if Keypressed 0 Answers
Do you need to have specific script types for different mobile platforms? 1 Answer