Pathfinding, not all objects start moving

Discussion and feedback on Construct 2

Post » Sat Nov 22, 2014 7:31 pm

I've started messing with pathfinding behavior and it's amazing, but I made a family with pathfinding and not all objects wants to start moving, any ideas how to solve it?
B
6
S
1
Posts: 57
Reputation: 514

Post » Sun Nov 23, 2014 11:57 am

There is a system event "for each" try that.
My game Petrolhead Tactics is now on Steam Greenlight. I could not have done this without C2 ? Please rate, if you like!

Steam client already open: petrolheadtactics.com/steam
Web: petrolheadtactics.com/greenlight
B
20
S
4
G
4
Posts: 132
Reputation: 4,130

Post » Sun Nov 23, 2014 12:52 pm

It's better, thanks for help, but sometimes objects still won't start moving, I guess the path I drew is to narrow, I'll try with wider path.
B
6
S
1
Posts: 57
Reputation: 514

Post » Sun Nov 23, 2014 2:41 pm

You should examine the RTS example go file-new- type RTS in search box.
My game Petrolhead Tactics is now on Steam Greenlight. I could not have done this without C2 ? Please rate, if you like!

Steam client already open: petrolheadtactics.com/steam
Web: petrolheadtactics.com/greenlight
B
20
S
4
G
4
Posts: 132
Reputation: 4,130

Post » Sun Nov 23, 2014 2:52 pm

You should add the On Pathfinding failed to find path trigger to see if some are failing. That will confirm if there is a real issue.
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Sun Nov 23, 2014 3:17 pm

Thanks guys :)

My gues was correct, path was too narrow. U see, when sprite with pathfind behavior is wider than path or collides with another (relativly overlaps with another object) it blocks because pathfind behavior cannot find free cell to move on. That's why some of my cars wouldn't move :]

OffTopic: Here in south Poland we have +15 degrees of Celsius and I whole day I'm spending with construct 2. Heh... But still I like it :D

I don't know why cars even they have solid option set and collision enabled after reaching destination they parking on themselves...
Code: Select all
http://scr.hu/1yl7/1pljj
B
6
S
1
Posts: 57
Reputation: 514


Return to Construct 2 General

Who is online

Users browsing this forum: AlexiarTW and 12 guests