what's up with the locked viewport?

For questions about using Classic.

Post » Fri Aug 19, 2011 3:43 am

I,m terribly sorry if I flood this forum too much but I'm making giant steps with every tip, infinite thanks for that. :)

Another one I tried to solve for quite a while;

So is there a way to unlock the layout viewport and be able to scroll anywhere we want in a big level? My level starts and goes upward. Zooming out keeps the viewport in the upper left corner and I can't zoom anywhere else but on the viewport...

Basically how do you navigate (scrool, zoom elsewhere...) in big levels that takes more than one screen?

B
4
S
2
G
2
Posts: 108
Reputation: 1,366

Post » Fri Aug 19, 2011 5:36 am

Yup, if you select the layout (from the properties bar on the right side of the screen), you'll see the Unbounded scrolling box in its properties (on the left side of the screen). Tick that box and the layout will allow scrolling outside its borders.

Edit: Oops, I may have misread, if I have then you will want to select your player or centre-of-screen object and give it the attribute "Centre view on me".Jayjay2011-08-19 05:37:26
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Fri Aug 19, 2011 5:51 am

Sorry I should have mentionned, I'm searching for the option for the editor only, for when I'm editing levels in the layout viewport, not in runtime with the game camera is enabled.

I guess it would be something that allows me to move the main white square workspace around a level as my center of zoom in/out.

Otherwise the farther I'm editing from that central (well, upper left really) white square workspace, the more zoomed out I need to be and the smaller the object, etc...

Basically beyond a certain zoom out, when no scrolling bar are displayed, using space+click+drag in the viewport doesn't do anything anymore.
B
4
S
2
G
2
Posts: 108
Reputation: 1,366

Post » Fri Aug 19, 2011 6:31 am

That's been solved in C2. The only way around that problem in CC that I know of is to make your own level editor, which at least when I tried it making a basic one wasn't as hard as I thought it would be. I have been using construct a while, though.

Basically all you need to do is make some controls to create/place sprites and tiled backgrounds, then save the locations and properties of each to an array. Then when loading a level at runtime, load the array and create the parts of the level from it.

You can even build those controls into the game itself so you can edit levels while playing them!Arima2011-08-19 06:39:06
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,422

Post » Fri Aug 19, 2011 6:44 am

Ah, I think a work-around for that would be to set the layout size larger than the layout itself, then shrink it down again after you're done editing.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Fri Aug 19, 2011 7:54 am

Guys, I think he is asking how to scroll in the layout editor.

If that is the case chap, one option is to hold down the space bar click and hold mouse 1 and move the mouse, or to click down a middle mouse button and move the mouse.Steven2011-08-19 08:39:38
B
9
S
2
G
4
Posts: 346
Reputation: 2,726

Post » Fri Aug 19, 2011 1:31 pm

Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Fri Aug 19, 2011 7:29 pm

Thanks guys, you gave me a lot of ideas and I think I finally found it;

Yes I think jayjay got the right answer. You manually enter the height and width of your whole level in the layout properties (say 10000 x 6000)

Just a bit lower in that same panel, expand the application property, then you set your actual application window's height and width to a standard resolution (640x480). So there is theorically no need to shrink it down again once you are done editing.

Seems to work well, I'm pretty sure that's the way to go.

B
4
S
2
G
2
Posts: 108
Reputation: 1,366


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests