Center Layout Window?

Get help using Construct 2

Post » Mon Apr 08, 2013 9:41 pm

Maybe this is something super basic or completely impossible but here is what I would like to do...

I have a 1920x1080 Layout with a 1920x100 Window size. The problem is that the Window is the top 100 pixels... I would like to center it on the 1080...

The game plays vertically in a very tall thin strip and I have need of Layout area on either side. I would like to use the Destroy Outside Layout for easy bullet management but there are bounce objects outside the view space on both sides.

Really I'd like to be able to position the Window within the Layout but have control over the total size of the layout...

I hope this makes sense... I'm very new to this and having fun so far!

Thanks
B
10
S
4
G
2
Posts: 133
Reputation: 2,667

Post » Mon Apr 08, 2013 9:56 pm

You can move to any part of the layout with the System->Scrolling actions.

eg.[code]
+System: On start of layout
   -> System: Set scroll Y to 540
[/code]
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Mon Apr 08, 2013 10:05 pm

[QUOTE=ramones] You can move to any part of the layout with the System->Scrolling actions.

eg.[code]
+System: On start of layout
   -> System: Set scroll Y to 540
[/code][/QUOTE]

Also, think about the screen like a camera, you can shake it with Sine, move around, zoom, and do effects.
ImageImageImageImageImageImage
B
93
S
20
G
13
Posts: 1,217
Reputation: 18,996

Post » Wed Apr 10, 2013 1:45 am

So... you have to build and kind of know the pixel space you want to display and set the scroll to show that area... I think I got it... It won't really show in the builder but its the result you get when it runs. I get the camera reference... the Window is what my lens can see, the Layout what I'm shooting at. Thanks that makes a lot more sense!
B
10
S
4
G
2
Posts: 133
Reputation: 2,667


Return to How do I....?

Who is online

Users browsing this forum: SpartCrafter and 22 guests