Twine version: 2
Story Format: Sugarcube 2.36.1
I’m currently trying to upload an image for the game I’m making, and I wanted to use an image of an axe for the axe item in the inventory and combat systems I’ve worked out, and my friend even made the pixel art for me, but I can’t seem to get the images to work, I’ve tried hosting it and whatever the other one is. But neither is working, I understand most of Sugarcube and Harlowe, and I know how to resize the images insode and outside of twine, as well as compress the urls, but I can’t get the images to show up right, all I get is this weird symbol.
In your first attempt, Google Drive will not allow hotlinking, at least not as far as I know
In your second attempt, you’re trying to link to a file on your hard drive. It looks like you formatted it correctly…just not in the preview function. If you go to the ▴ menu and click “Publish to file” the image should work.
However, the image won’t work once you upload your Twine story to the Internet. So you should instead use a relative link like this, omitting everything before the final slash.
None of this very convenient and you might want to switch to Twine 1, which has image importing under the menu Story > Import image. You can still use the latest version of Sugarcube with Twine 1.
I am not that familiar with sugarcube (I usually use Chapbook) but can’t you use Base64 image coding in a passage, then insert that passage where you want it? If you don’t mind the size bloat that happens, it has a big advantage, i.e. the game is self-contained without other files or folders (or outside sources) being necessary.
This worked! but instead of base64 I had to use html, and that website link was perfect! thanks a ton! You saved me on that one! Now I just need to resize it…
I don’t even know what to say, your just amazing, unless your against it I’m putting your profile name in the credits (one day, when my game is more than just 36 passages, AND I figure out how to upload it to itch.io) under “tech support”. It’s people like you that make learning how to do new things easier by sharing your wisdom. Thank you
well, time to write some combat calculations, (and don’t help me, this is an undertaking I wish to solve on my own, so I can grow further)