How do I pin together two instances of the same object?

0 favourites
  • 2 posts
From the Asset Store
Wall Pin Board is a hyper causal game developed for fun and inspired by YouTube video whose link is given in description
  • I'm trying to make a game in which one of the mechanics is to attach two batteries together. I have a battery object type. I have cloned it a few times. It has DragDrop and Pin behaviors. I set up an Event on Battery so that when one Battery collides with another, I pin the battery.

    This sort of works up to a point. When the first instance touches the 2nd, the 2nd sticks to it just as I want.

    But as I move the first instance up, it "slips" against the 2nd battery and they are no longer attached the way they were originally; the 2nd battery is lower than the 1st.

    Also, I can't then pin additional instances to the first one and have 3 or 4 of them all move together. It seems like an instance can only be pinned to one other instance, so a 2nd collision unpins it from the first.

    There are other issues as well. Basically pin is not working as I would expect. How should I solve this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Make an invisible or hidden little sprite behind the first battery and pin the battery to that. Then pin all other batteries to that object as well? Would that avoid your problem?

    I am working on a map with little flags on it. All instances of the same flag. Every time a new flag is placed it is pinned to the map and it works fine so i am guessing that would solved it. If not, perhaps you can post the file you are working on so i can try some things for you?

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