How do I allign vertically objects of the same kind?

0 favourites
  • 3 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • 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?

  • 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).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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)