What really is the use of Margins ?

Discussion and feedback on Construct 2

Post » Fri Jan 27, 2012 5:45 pm

Hello Developers :)

The layout properties contain changeable data like layout size and margins.

I see that the margins gives a kind of "free space" for us to put our assets that are not to be seen on the stage unless it's their time [when we bring them in].

I am just curious about whether I am using the margins as it was intended.

So here's my question, is the margin mainly for the developer to put their stuff away for a while ? or is there an actual "official" usage of the margins ?

Thanks ;p
B
11
S
3
Posts: 279
Reputation: 1,651

Post » Fri Jan 27, 2012 5:50 pm

I use it to dump assets too... pretty sure everyone does. Being able to adjust the margin just allows more or less space to scatter your junk xD

If there is some other practical use, I'd love to find out what that is too. :D

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Fri Jan 27, 2012 6:58 pm

So would I.
B
4
G
2
Posts: 12
Reputation: 1,249

Post » Fri Jan 27, 2012 7:15 pm

Same here.
B
47
S
10
G
6
Posts: 455
Reputation: 8,326

Post » Fri Jan 27, 2012 8:09 pm

So the camera can scroll all the way to layout borders.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat Jan 28, 2012 6:54 pm

The funny thing is, there's nothing stopping you from dumping assets outside the margins...

hmm...
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Jan 28, 2012 10:19 pm

It's just a comfort thing really. Set the margins to 0 and you'll see it's really cramped scrolling around the layout, so it's nice to have some extra scroll space. In Classic the ability to change the margin was requested several times so I added an option for it - I guess people just like to change it according to taste.

The area outside the layout is useful for stowing away objects you want to place but not have in the actual game. For example, most of your bullets probably use the 'destroy outside layout' behavior. So you can have a row of your bullet objects outside the layout which will all be destroyed on startup because they're outside the layout, but it still gives you a place in the layout view to select them and edit their properties.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sun Jan 29, 2012 1:31 am

Yeah, the area outside is nice to have... perhaps remove the margins and just allow infinite (to an extent) scrolling outside the layout?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun Jan 29, 2012 8:07 am

Having infinite doesn't make much sense, being able to set how much you want is fine, also think of the scroll bars!
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Sun Jan 29, 2012 12:46 pm

OK then... sure, leave it as it is I guess :D
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests