Hi everyone! Just wondering if there are any other pathfinding plugins that move sprites in a grid based way. In my game I'm currently using 00Rez's Astar plugin but have run into problems with it. Can anyone recommend another one or help me with the one I have? Any help would be greatly appreciated, thanks!!! <img src="smileys/smiley1.gif" border="0" align="middle" />
Seems to be a lot of people asking this lately <img src="smileys/smiley4.gif" border="0" align="middle" /> What was your issue with the Rez's Astar one? I'm about to start a project that uses it, I've heard some people have problems with terrain costs, but that doesn't affect my project - is there anything else I should be aware of?
Just thinking out loud:
Wouldn't it be possible to use the build in pathfinder behaviour to find the nodes and use another behaviour to create the movement towards grid-rounded values of the nodes position?
Develop games in your browser. Powerful, performant & highly capable.
I'll give that a try now and report back...
LittleStain Thanks for replying! What other behavior would I use to find the nodes and use them? I don't think I've ever used the built in pathfinder for just finding a path only, but it sounds interesting!
lolpaca The problem I ran into using 00Rez's pathfinder was that I couldn't get it to recognize new spawned instances of the same sprite as path blockers. But try it out, maybe you can make it work and let me know if you don't mind.<img src="smileys/smiley1.gif" border="0" align="middle" />
Thanks for the reply's guys, lets discuss more when you can!
This seems to work OK and was quite simple to do - give it a try!
I thought it would have trouble handling non-45-degree diagonals, but the way I've done the player's movement seems to have taken care of that for me.
That's about what I meant, great work.
Works perfectly, also if you turn of diagonals.
lolpaca Wow that's an awesome demo! Thanks so much for taking the time to make that. This could help my match 3 game a lot, I was getting kinda frustrated with the other plugin.
LittleStain Turning off diagonals made it even greater thanks. By the way did you ever finish your Picking tutorial/guide you were working on? Because in my match 3 game after every mouse click I have it spawn randomly another instance of a colored cube at a random spot on my board. The problem is that I can only move the first instance. Any one after that won't move. So I guess I'm needing some picking help.<img src="smileys/smiley1.gif" border="0" align="middle" />
Thanks both of you sooo much for all the help, and I look forward to hearing from you soon.