Howdy, Stranger!

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

Is it possible to create different clickable points on a single image ?

Hello,

I just came across a game made with Twine :
https://banach-tarski.itch.io/8

I'm looking for a way to make an image with multiple clickable points, just as this game (see on page 2)
Could you help me with that ?
Thanks in advance !

Comments

  • tautau
    edited January 11
    I would guess they aren't a single image, but multiple images placed in an array, with the individual images being their own unique links. I think if you made them all squares of the same size (the ones in the story look like they're about 30x30 px) and either being transparent .pngs or having the same background color, they would look natural like your example.

    You can read some stuff about images here: https://twinery.org/wiki/image
    The code for using images as links appears to be
    [img[image name][Passage name]]
    

    edit: Oh! and for the spaces between the images, of course, you would just use blank ones.
  • edited January 11
    Ealder wrote: »
    I'm looking for a way to make an image with multiple clickable points, just as this game (see on page 2)
    You can accomplish that with an imagemap. As surmised by tau, however, the linked game uses many small images arranged in a grid, not an imagemap.

    Also, you should always specify the story format you are planning to use and its version as code examples will likely vary depending on which you're using.
  • Both of you, thank you !
    I'll try !
  • If you figure something good out, post the code here. I'm trying to make a world map in an RPG work, so this sort of code would be very useful. :)
Sign In or Register to comment.