• To improve security, we will soon start forcing password resets for any account that uses a weak password on the next login. If you have a weak password or a defunct email, please update it now to prevent future disruption.

Ren'Py (Solved)Creating an animating hotspot to select a "path" in game?

Jan 19, 2020
23
10
I tried to understand the wiki for renpy but I'm not quiet getting how it's done.

How do you create an animated hotspot to click like a map/path choice?

Thank you for your help.
 

mickydoo

Fudged it again.
Game Developer
Jan 5, 2018
2,446
3,547
crackedreneamon

Python:
screen your_map:
    imagemap:
        ground "whore_house_a.jpg"
        hover "whore_house_b.png"
        hotspot (1132, 533, 496, 287) clicked Jump("whore_house")
The ground is the image you see on the map, the hover is the image you see when you hover over it, the simplest thing to do is change the color of it.

The ground is the image you use for the map itself, on there you put the whorehouse icon. You then make a sperate whorehouse icon by itself for the hover, it has to be a .png so the background is transparent.

The "1132, 533, 496, 287" is the location of the hotspot. You find this by opening your game and hitting shift d and click on image location picker then search for the background image you are using for your map, in this example whore_house_a.

Drag your mouse around the area you want the hotspot to be and then paste into a notepad, and you will get your location.

Then just call the screen when you want it.

You can also use image buttons but that's another question.
 
Last edited: