How do I know the width of a layer that has parallax?

0 favourites
  • 3 posts
From the Asset Store
Set of 10 Parallax Background to make pixel art game.
  • Hi

    I have a background layer with parallax of 25, 25

    I have a game layer with parallax of 100, 100

    The layout is 9600 width

    If I create an object on the game layout on the (200, 9600) its created on the border of the layout but if I created an object on the background layout its created in a different position

    I want to know the "width" of the background layer at runtime so I can create objects inside the background layer

    Any ideas?

  • Hi

    I guess this is what you're looking for...

    [attachment=0:1nm72p36][/attachment:1nm72p36]

    The text shows the minimum and maximum X for the specified layer. You can create objects by clicking on screen and you can hit TAB to see the X and Y of the red dot when you add them.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • brunopalermo

    Hi Bruno

    Thanks for taking your time, interesting example

    But I have a big layout (9600x1080) and I want to be able to create objects in the layer that has parallax effect but outside of the screen.

    I don't know if I explained it correctly?

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