SImple Pathfinding Question

Get help using Construct 2

Post » Fri Apr 07, 2017 3:39 pm

hi there got a question
im using on Object create - set Object to pathfind something on layout
on path found move along path

problem is its not working, so i was wondering if objects can actually pathfind if they are of screen? and if they cant what other method can i use?
B
16
S
5
Posts: 140
Reputation: 1,654

Post » Fri Apr 07, 2017 5:15 pm

Hm... I'm pretty sure that pathfinding works, so long as it's on the layout (That is to say, not on the margins) It's possible some other part of your code is interfering. Can you post a capx of your project? Hope I can help!
B
18
S
3
G
3
Posts: 82
Reputation: 2,543

Post » Fri Apr 07, 2017 5:19 pm

thanks for reply, im sorry cant post capx, as its a secret project atm, but i think you helped as the created objects are not on the actual screen but on margins ,as i wanted the troops to march onto the screen :(, hmmm the question is how do i do this without relying on basic movement
B
16
S
5
Posts: 140
Reputation: 1,654

Post » Fri Apr 07, 2017 5:33 pm

Glad I could get you started in the right direction! I think as long as a small portion of the unit is on screen, pathfinding might work, so spawning them with like a 10 pixel overhang on will give a good impression of marching in to the scene. You can also play around wiith the solids behavior to make walls around the camera zone, but have the layout extend past the camera. If your enemies pass through it, that might work. Unfortunately I don't have C2 in front of me, so I can't test either answer. Let me know if either works, and if not, I'll help brainstorm some other options.
B
18
S
3
G
3
Posts: 82
Reputation: 2,543

Post » Fri Apr 07, 2017 5:39 pm

You can have a quick look at these alternate plugins for dealing with the issue: viewtopic.php?f=153&t=87207
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Fri Apr 07, 2017 5:59 pm

thanks for the replies
B
16
S
5
Posts: 140
Reputation: 1,654

Post » Fri Apr 07, 2017 6:04 pm

Of course! Hit me up if you need any more help, or shoot me an email at [email protected]
B
18
S
3
G
3
Posts: 82
Reputation: 2,543


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests