How do I sprite pin sprite SAME TYPE?

  • Hi Builders ...

    I need to do the following ... that a Sprite using PIN be subrogated to it.

    Imagine the following: I have an army of SOLDIERS (sprites) all of the same type, but only one is the COMMANDER ... the Sprites have a VARIABLE called "CHIEF" ... the Commander has it in "YES" and the Too many "SOLDIER" in "NO" and I want all "SOLDIER" remain with "PIN" behavior that SOLDIER that he has the VARIABLE "CHIEF" as

    "AND IT IS".

    The Sprites also have another variable saved by the Commander's UID called "UICHIEF"

    Any way to do it? ... I don't want to have to create another sprite to pin between them.

  • the easiest way I know of is to create a family, put the pin behavior on the family (not the soldier sprite).

    then you can pick the soldier sprite that is the chief, and pin all the family members to it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • the easiest way I know of is to create a family, put the pin behavior on the family (not the soldier sprite).

    then you can pick the soldier sprite that is the chief, and pin all the family members to it.

    THANKS...

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)