[Behavior]PathFinder

Post your completed addons to share with the community

Post » Sat Nov 10, 2012 7:37 am

Hi, may the pathfinder create path oriented like in flash?

Thank you,
Rhiegel
B
33
S
8
G
1
Posts: 6
Reputation: 3,883

Post » Sat Nov 10, 2012 8:55 am

[QUOTE=Rhiegel] Hi, may the pathfinder create path oriented like in flash?

Thank you,
Rhiegel[/QUOTE]

@Rhiegel: I'm afraid I don't understand this question.
Can you be more specific, explain a bit more ?
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sat Nov 10, 2012 1:19 pm

Can you upload a new capx because that one is very outdated and can't be used anymore :/
B
9
S
2
Posts: 41
Reputation: 1,756

Post » Sat Nov 10, 2012 2:38 pm

Yes Sir, I try to explain more specific.

I want to create a character movement using pathfinder and I want the character move like we use car movement behavior, is that posible to using pathfinder Sir?

thank you very much, and I'm sorry because I can't speak english too well

Best Regards,
Rhiegel
B
33
S
8
G
1
Posts: 6
Reputation: 3,883

Post » Sun Nov 11, 2012 12:13 am

@HPA97: What do you mean outdated ? The capx still works for me on r109 and the logic of use still stands.

@Rhiegel: The pathfinder only returns a path. The way you make your object travel the path is totally up to you.
The movement is independent from the pathfinding.
Check the example for a moving object in the first post, and on left click, implement your own movement way.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sun Nov 11, 2012 9:53 am

@Kyatric: Ahh, it tells me that i need addons... What addons did you use?
B
9
S
2
Posts: 41
Reputation: 1,756

Post » Sun Nov 11, 2012 9:04 pm

@HPA97: You need the pathfinder behavior that is available in the first post.
And here check how to install plugins and behaviors (the pathfinder needs to be copied in the exporters\html5\behavior folder).
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sun Nov 11, 2012 9:42 pm

Thank you Kyatric ;)
B
9
S
2
Posts: 41
Reputation: 1,756

Post » Wed Dec 12, 2012 3:34 am

Hi Kyatric,

I just started using C2 and i think this is a great plugin! I only have one question that i can't seem to figure out if you can help. The player's movement to follow the path seems to be limited to the size of the project "Window Size" not the layout size. I have a layout background that is double the size of the project's window size and if the background has scrolled past the window size, and i click, the player will not move to that location. They seem to "hit" and edge and start over where the window size edge was. Is there a way to set the PF board rows and columns manually? Or am i doing something wrong that is causing this? Thx!
B
3
Posts: 4
Reputation: 733

Post » Wed Dec 12, 2012 5:38 am

Just to follow up, i put a JS alert in the plugin runtime.js to test and i saw that the "this.support = this.runtime.running_layout;" code is getting the correct layout width and height. The problem is the pathfinder does not seem to work on the entire layout, only the original window size from the project settings. The proj window size is 1024x1024, and the layout size is 3616x3616. If i click outside the 1024 area on the layout, the pathfinder will not recognize. If you have time to take a look, thx
B
3
Posts: 4
Reputation: 733

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: edisone and 2 guests