How do I pin and object to a UID?

0 favourites
  • 3 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
  • So basically I'm making an asteroid clone and want to pin the a alien on a UID asteroid. I know how to pin 1 object to another, but how do I do it to a clone?

    I know this is super simple.

  • You do mean two of the same sprite?

    You have to use a family. Put the sprite object in a family, and then you can refer to the object and the family as two different objects. Pin the object to the family.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • or perhaps you mean you want to pin the object at run time? instead of when you design it on the C2 editor?

    use the On created event on the asteroid object, on creation it will spawn an alien, and immediately pin the alien on that asteroid

    assuming the alien has a pin behavior, this is the example event:

    asteroid On created | asteroid Spawn alien on layer "Main" (image point 0)

    _____________________|alien Pin to asteroid (position and angle)

    hope that helps

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