Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Help with buttons and Images

Hi!

I'm new to Twine, so please excuse my newbness and my english because I'm from Spain :-[. I'm sure that mi question is silly but I don't know to do it.

I want that when you click a button (with  a image) you can pass to another passage.

I'm using this:

<button> [img[[foto]] </button>

Thanks!

Comments

  • If you're simply trying to make an image link which goes to another passage, then this should work:
    [img[foto][passage]]
    For example:
    [img[btnImage.png][SomePassage]]

    On the other hand, if you actually want it inside a button, then this should work:
    <button data-passage="passage">[img[foto]]</button>
    For example:
    <button data-passage="SomePassage">[img[btnImage.png]]</button>
  • Thank you sooo much! I'm going to try it!
Sign In or Register to comment.