HTML Need Twine Help

BRyoung77

Member
Apr 2, 2020
183
110
I am just started out making a game with Twine 2! I know some basic HTML. right now the trouble Im having is adding an image. all i get is a broken image. I created an images folder in with the game folder so i did <img src="images/img-name.jpg> but it just comes out as a broken image. I tried putting this within a java script to go inside the sidebar and also in the body of the text itself and get the same issue each time. What am i doing wrong. I am using sugarcube as well.
 

Alcahest

Engaged Member
Donor
Game Developer
Jul 28, 2017
3,117
4,019
Read here:


Or switch to something like Tweego. Then you can also code in a real editor.

Btw, if you encounter stuff like broken images, then check the filepath for it. For instance, right click on the broken image and select Open image in new tab (or similar) and check the url of the image it's trying to load. Helpful when you want to understand why something is broken.
 
Last edited: