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

Get help using Construct 2

Post » Tue Feb 10, 2015 7:17 pm

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? :P
B
73
S
21
G
10
Posts: 641
Reputation: 9,798

Post » Tue Feb 10, 2015 8:07 pm

Hi @lolva

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

create-object-paralax-example.capx


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.
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012

Post » Wed Feb 11, 2015 3:07 pm

@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?
B
73
S
21
G
10
Posts: 641
Reputation: 9,798


Return to How do I....?

Who is online

Users browsing this forum: Magistross, zenox98 and 11 guests