How do I offset a layer?

Not favoritedFavorited Favorited 0 favourites
  • 6 posts
From the Asset Store
Dissolve
$2.49 USD
Dissolve effect with parameters for edge color, offset and size.
  • I don't mean parallax. I mean I want the layer to scroll the same way as a game, but need it to be offset 10px in Y axis.

    Or is there a way to pin an object so that it is always offset on y vector?

  • Anyone?

  • Probably the set layer scroll action.

  • Set scroll does not quite work. It acts like parallax.

    I have Object A on layer 1 and Object B on layer 0, both at the same position and turning, in same hierarchy. I want the Object B to be offset on Y axis 10px, so as the both objects turn, the Object B always remains offset in one direction and the offset is not dependent on the angle of Object A.

    When I use "set layer scroll", the object B is all over the place as object A moves. I don't quite understand it, I don't want the layer to be offset exponentially as I have "scroll to" behaviour on Object A as it happens here:

    https://imgur.com/TvMeBGF

    There are workarounds for this, like pinning both objects to separate pivots of one non-turnable parent object. But I am thinking this could be solved more easily with just offsetting a layer since I will have many objects like this. After all, we can turn a layer, set its scroll -- why not an offset/position? Is this an oversight?

  • I mean doing:

    Every tick

    — set layer 0 scroll to scrollx+16, scrolly

    Seems to do the trick. But it still is subject to bounded scrolling along the edges of the layout unless you select unbounded scrolling on the layout properties.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It does not work.

    First of all, it glitches.

    Secondly, the underlaying object still does not stay at 10px offset at all times relative to screen edges.

    Vers 1: https://imgur.com/a/SLjeL5S

    Vers 2: https://imgur.com/a/jtPPgJG

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