0 Favourites

How do I pin different instances of an object?

  • Hello guys!

    I'm making a game for Ludum Dare and I'm having trouble!

    I have a main object, a Mirror, that has 3 instances on the screen. I want to pin one "collider" object on each one of the mirror instances.

    The blue objects are the mirrors, I want the purple objects (the colliders) to pin on each one of them.

    This is the code. I've tried lots of ways, but none worked. I tried to pick all instances and attach them, but what happens is that all the purple colliders pin to the first mirror, and the rest of the mirrors have no collider. Don't mind the instance variables, they don't seem to work.

    I know that this is very specific, but I really appreciate your reading and I hope you can help me.

    Thanks!

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)