Pathfinding to specific object with variable set

Get help using Construct 2

Post » Thu Nov 28, 2013 4:34 pm

Hello!

Has anyone tried this before and can offer a quick easy answer? How do you set a path in pathfinding to an object that has a specific variable set. Usually i just use Set path to object.x,object.y but I would like to find a path to an object that has i.e. IsFull set to false.

Thanks
plinkie
B
46
S
16
G
78
Posts: 2,168
Reputation: 46,353

Post » Thu Nov 28, 2013 4:52 pm

just select the object first by comparing instance variable, then find path to that object?
B
12
S
5
G
2
Posts: 132
Reputation: 2,627

Post » Thu Nov 28, 2013 4:55 pm

system pick by comparison.
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 » Thu Nov 28, 2013 4:56 pm

Ah yes, thanks. I was comparing the instance variable on path found and it was choosing the wrong things. Apparently I needed to compare the instance variable before choosing the destination object. Cheers!plinkie2013-11-28 16:56:42
B
46
S
16
G
78
Posts: 2,168
Reputation: 46,353


Return to How do I....?

Who is online

Users browsing this forum: Armench and 15 guests