İcon for passages

Twine Version: 2.7.1
[Sugarcube 2.36.1]

Hey guys.
I want to use icon for passages. I found out something like that in the internet but I think it is not the one Im looking for. Here is what I found and its not work it.

a href=“[[twitter]]”>
<img
src= “” height=“150”

I just want to use some images to make player roam around in my game. Shorty ,when the player click the icon he/she needs to be lead to passage I write. İf its possible please help me…

Kind Regards :heart:

You can an images inside the link markup or macros in Sugarcube:
Image Markup: [img[Title of link|Image URL][PASSAGE NAME]]
Link Macro: <<link '<img src="URL">'>><</link>>

Thank you SİR!!!
Kind Regards

You’re welcome! Don;t hesitate to post again if you have more questions.
(I’m a woman :wink: see my profile)

2 Likes

Hello again

I want to ask another question with this. How can I make the images smaller ? when I use normal images I just use height or widht like this

“”“”
img src= "img\LAST\49.webp
" height = “700”

“”“”

But when I try to add height like this

“”“”
[img[Title of link|vp photos\12.jpg height=“100”][roam]]

“”“”
The image dont show up.

I am new in this things soo Im sorry if its a stupid question :innocent: :slightly_smiling_face:

Kind Regards

You can only use height and width with the HTML markup <img>.

If you want to use the TwineScript ([img[URL]]), you need to wrap it with a span, and edit the size in the StyleSheet:

<span class="this-image">[img[URL]]</span>
.this-image img {
    height: 100px
}
1 Like

Thank you very much, ma’am. You saved me from big trouble :slightly_smiling_face: