0 Favourites

How do I allign vertically objects of the same kind?

  • I hope my explanation is comprehensible:

    I have an object with different frames, three instances of the same are created on top of each other (like in the picture). Everything should rotate with the camera (set layer angle works for me), but I would like to allign these vertically, so they would look like they are one instance, rotating like any other individual sprite would.

    Pin behaviour would be the super easy solution, but pinning an object to other of the same kind does not work for me, I read an old post about it but found no solution. I cannot rely on the X and Y coordinates either because i´m looking for a fixed Y point that would change when rotating the camera!

    Any help?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • you could create an invisible sprite, and pin the objects to that.

    I thought that the x and y coordinates for the layer wouldn't change by rotating the layer (only in relation the absolute x, y) but I don't rotate layers so I am not sure - I know from zooming layers that you have to be careful when how you compare things on different layers (convert the coordinates from one layer to another's).

  • Create an anchor object to pin group of instances. Put this anchor to one of those instances as a "head". Make sure the anchor follow the "head" all time.

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
107 17,835
ZeroBiss's avatar
ZeroBiss
Unread hot topic
99 10,155
karshinkoff's avatar
karshinkoff
Unread hot topic
167 14,516
DMT2005's avatar
DMT2005