Any other Pathfinder plugins?

Get help using Construct 2

Post » Sat Jan 25, 2014 4:11 am

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!!!
B
8
S
1
Posts: 42
Reputation: 1,159

Post » Sat Jan 25, 2014 11:01 am

Seems to be a lot of people asking this lately 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?
B
15
S
4
G
1
Posts: 286
Reputation: 1,988

Post » Sat Jan 25, 2014 12:10 pm

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?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jan 25, 2014 12:25 pm

I'll give that a try now and report back...
B
15
S
4
G
1
Posts: 286
Reputation: 1,988

Post » Sat Jan 25, 2014 1:19 pm

@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.

Thanks for the reply's guys, lets discuss more when you can!
B
8
S
1
Posts: 42
Reputation: 1,159

Post » Sat Jan 25, 2014 1:31 pm

This seems to work OK and was quite simple to do - give it a try!

https://dl.dropboxusercontent.com/u/106247621/LinearPathfinding.capx

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.
B
15
S
4
G
1
Posts: 286
Reputation: 1,988

Post » Sat Jan 25, 2014 1:50 pm

@lolpaca

That's about what I meant, great work.
Works perfectly, also if you turn of diagonals.

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jan 26, 2014 12:54 am

@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.

Thanks both of you sooo much for all the help, and I look forward to hearing from you soon.
B
8
S
1
Posts: 42
Reputation: 1,159


Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey and 8 guests