0 Favourites

Pathfinding: THE SEQUEL!

  • 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?

  • 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? :)

  • Now make DLC to it

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • vee41 - That's what I thought. :) That's for the confirmation.

    @fassFlash - I'll get right on it. LOL

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
105 16,951
Magistross's avatar
Magistross
Topic
21 474
YoHoho's avatar
YoHoho
Topic
0 Favourites
To early for a sequel?
18 941
s0nic5o000's avatar
s0nic5o000