Howdy, Stranger!

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

Sugarcube - Link div to passage

Hi everyone,

I'm currently using Twine as part of a university assignment. Currently I'm at the stage where I want a user to click a Polaroid image to select their character's gender. The Polaroid is essentially a positioned div, and when they click on that div, I'd like them to be taken to the next passage.

How would I do this? I've had a browse but couldn't find anything, and I'd be really grateful for any help. Thank you!

Comments

  • Hi everyone,

    Sorry for the double post but I figured this out, and it turns out it's just a case of me needing to brush up on my HTML knowledge.

    Instead of doing <div class=example> </div>, I discovered that you can actually just do <a class="example" data-passage="load2_f"></a>.

    Hopefully this helps someone else who has this issue in the future!
Sign In or Register to comment.