Set window lower than top of layout?

Get help using Construct 2

Post » Tue May 14, 2013 5:15 am

I know you can have the window smaller than the layout, but when I set my layout taller than my window, the window is sitting aligned with the top of the layout (and all of the "extra" layout is below the window).

I want some objects to be able to be above and below my window but still on the layout (because I still want to use Destroy Outside Layout behavior on them).

So is there any way to specify the layout to extend above my window (or to put it differently, have the window sitting in the middle of the layout).

Thanks for any advice.

I am a brand new Construct user and this is my first forum post. Woohoo!
B
4
Posts: 5
Reputation: 305

Post » Tue May 14, 2013 8:14 am

I did this once by creating an invisible sprite, placing it where you want the center of your screen and giving it the scrollTo behavior.

Obviously this method will not work if you are NOT using scrollTO on another object.
ArcadEd2013-05-14 23:52:27
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Tue May 14, 2013 10:54 pm

Thanks, ArcadEd. I got the scrollTo working!

A secondary issue is how to constrain my player sprite to the window instead of it wandering all over the non-visible layout. but I think this is pretty easily handled by comparing its position to known x,y limits.
B
4
Posts: 5
Reputation: 305

Post » Tue May 14, 2013 11:52 pm

A few options. Comparing it's x/y or again, creating invisible sprites to act as borders.ArcadEd2013-05-15 03:02:49
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993


Return to How do I....?

Who is online

Users browsing this forum: austinblackbelt, mallorcaredes and 2 guests