A question about changing the color of margins [Solved]

Violent_Technology
14 Mar 2018, 18:23

Hey, this is a silly question but I haven't been able to find the answer easily.

I want to make a gamebook with a black background and white font, easy enough to do, but when I go to play the game there are two large, white margins on either side of the screen I can't get rid of. Unchecking the show border box in the display tab doesn't change it.

Any ideas on how to turn the margins black?

Thank you!


K.V.
14 Mar 2018, 18:40

Hello.

Try adding this to the "Script when entering a page" script in code view:

JS.setCss("body","background:black")

image


Violent_Technology
14 Mar 2018, 18:42

Thank you so much KV! That did the trick!


K.V.
14 Mar 2018, 19:26

You're welcome!


NOTE:

If this were a text adventure, that could could go in the User Interface Initialisation script.


Doctor Agon
15 Mar 2018, 07:35

@KV; Re:Note - For Text Adventure
Or, they could go to the 'Display' tab, of the game. About half way down, it says 'Background'.
You can change the page colour, it opacity, margin colour, even have an image in the margin.
You can probably have an image on the page too. Although, that might have to go into the User Interface Initialisation Script.


K.V.
15 Mar 2018, 15:46

Good call, DrAgon! I never even noticed that was there!