[SOLVED] Question about gray frame limiter.

Discussion and feedback on Construct 2

Post » Mon Apr 29, 2013 5:21 pm

Hello and thanks for reading this message.

I have a silly question, but which is not the answer.

When we do a project in Construct 2, we have a gray frame limiter, which limits the movement across the screen.

When we execute the project from Construct 2, the frame limiter appears:


However, if we export the project to HTML5, and run it online, this frame limiter disappears, although the limit of movement across the screen still works:


Why disappears the gray bounding box when we run online?.

Thanks and regards.jesusruiz2013-04-30 14:38:21
B
4
Posts: 17
Reputation: 261

Post » Tue Apr 30, 2013 2:30 am

None of us has an answer for this?
B
4
Posts: 17
Reputation: 261

Post » Tue Apr 30, 2013 9:35 am

Hi Jesusruis,

This gray frame is part of CSS styling of the web page. You can add a similar style via CSS to your index.html page (or any other styling you wish).

The key point is, it has got nothing to do with the game itself - the frame is outside of the game rectangle, and does not limit or influence anything inside the game.

Example css style to re-create the nice border:
[code]#canvasBox {
     top: 5%;     
     left: 50%;     
     width:960px;     
     height:540px;     
     margin: 0 auto;
   background: #616161;
   border: 1px solid #8F8F8F;
   padding: 15px;
   -moz-border-radius: 10px;
   -webkit-border-radius: 10px;
   border-radius: 10px;
}[/code]

Hope it helps,
Greg
B
17
S
3
G
3
Posts: 79
Reputation: 3,698

Post » Tue Apr 30, 2013 2:27 pm

It's purely decoration for preview. If you like, you can add the decoration back to the export by copying the HTML and CSS.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Tue Apr 30, 2013 2:37 pm

Thank you very much for the answers, you are very kind.

I'll try the CSS, although it's nice to know I can set any other frame.

Millions of thanks and greetings.
B
4
Posts: 17
Reputation: 261


Return to Construct 2 General

Who is online

Users browsing this forum: TELLES0808 and 9 guests