- In each text box, give certain places a “tag.” For example, in my game I had several different rooms. Each room was tagged with particular name.
- When you finish tagging all of your text boxes, create a stylesheet for each tag.
- Tag each stylesheet with the same name you placed in the text boxes.
- Place the HTML code in under the “Body” section in the stylesheet.
- The HTML will look like this
-
body {
background-color: blue;
color: black;
} - For most basic colors, you can just write the name of the color. If you want a specific color you must find the HTML color code, which can be done through a quick google search or through a software like Adobe Photoshop
-
body {
- In the end, you should have multiple stylesheets that will automatically link to the tags in your text boxes.
Twine- How to change background color multiple times throughout game
Leave a reply