Change the border?

Get help using Construct 2

Post » Wed Mar 28, 2012 3:19 pm

Sorry for another basic question, but I did search and couldn't find it (I guess I'm using the wrong terminology).

How to I change the appearance of the grey box that surrounds my layout? Nothing fancy, I'd just like it to not be there, and from looking at other people's games, I see it's possible.

Also, if I want to change the background surrounding the layout from the standard black, can I just edit the index file after exporting, in the same way I'd edit the background in any other html page, or will that break stuff?

Sorry again for nooby questions, and thanks in advance for any help.
B
6
Posts: 22
Reputation: 751

Post » Wed Mar 28, 2012 3:24 pm

Search for this code in your index.html after exporting.

<!-- This outlines the canvas with a black border and makes the page background black. -->
<style type="text/css">
     canvas { border: 1px solid black; }
     body { background-color: black; color: white; }
</style>

Is a basic CSS3 definition of your page.
Border attribute in canvas tag modify the box surrounding the layout.
Background-color in body tag modify the color of your page. (color modify the color of the text in your page).

Dado2012-03-28 15:25:20
B
15
S
5
G
1
Posts: 40
Reputation: 2,026

Post » Wed Mar 28, 2012 3:26 pm

[QUOTE=MonstaMunch]can I just edit the index file after exporting, in the same way I'd edit the background in any other html page, or will that break stuff?[/QUOTE]

Yes you can, the grey border only appears in your preview I beleive.

And I think Kyatric has a massive tutorial on editing your export file if you have a look there.

Edit: Found itNimtrix2012-03-28 15:28:30
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Wed Mar 28, 2012 3:43 pm

Thanks for the info both of you. Helpful as always :)
B
6
Posts: 22
Reputation: 751

Post » Wed Mar 28, 2012 4:32 pm

You're welcome.
B
15
S
5
G
1
Posts: 40
Reputation: 2,026


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], R0J0hound and 24 guests