Pathfinding: THE SEQUEL!

Get help using Construct 2

Post » Sun May 05, 2013 5:09 pm

I have a Family that I created right after I bought the personal license. Prior to adding the (currently only) object to that family, that object, itself, had the Pathfinding behavior. However, I noticed now that the family (not just the object) the object is in had the Pathfinding behavior, as I intended. That is, the object alone no longer has the behavior. The curious thing is that the Pathfinding behavior in the properties bar and in the event sheets is labeled as Pathfinding2. I was curious as to why the 2 is there. Does it perhaps have anything to do with the fact that I added Pathfinding behavior to the family AFTER adding the object while the object, too, still had the same behavior?
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
113
S
20
G
8
Posts: 741
Reputation: 13,661

Post » Sun May 05, 2013 5:44 pm

All behavior names for objects must be unique. So, as your object had reserved name 'pathfinding' already, and you gave it another pathfinding behavior through the family, C2 had to name the behavior as 'pathfinding2'. So your object effectively has 2 pathfinding behaviors. :)

If there was no renaming, you could not distinguish between the two behaviors. Like, if you did line like: 'Object.pathfinding.nodeat()', which path finding behavior would it refer to? The one on the family, or one on the object itself? :)
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Sun May 05, 2013 7:06 pm

Now make DLC to it
HARMLESS SIGNATURE THAT IS VIEWED BY OTHERS AS OFFENSIVE AND CONTROVERSIAL
B
14
S
3
G
3
Posts: 356
Reputation: 4,362

Post » Tue May 07, 2013 3:13 am

@vee41 - That's what I thought. :) That's for the confirmation.

@fassFlash - I'll get right on it. LOL
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
113
S
20
G
8
Posts: 741
Reputation: 13,661


Return to How do I....?

Who is online

Users browsing this forum: makkancs and 26 guests