[Solved]notify hovered on renpy.imagemap

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Ariku
Newbie
Posts: 2
Joined: Sun Nov 18, 2018 12:31 pm
Contact:

[Solved]notify hovered on renpy.imagemap

#1 Post by Ariku »

Hello to all

I'm all new to renpy and tried for a while to figure out how everything works. but after days ( weeks of research i don't find a proper answer for my problem.

it's not a big deal i guess but i would like to have a notification on hovered location to show players where they go.

thanks for any help

Ariku

my actual code goes this way

Code: Select all

label kitroam1:
    show screen Mappin
    show screen iconcoro
    show screen daytime1
    show screen dayname
    show screen daycount


    $ result = renpy.imagemap("kitchen roaming gnd.png","kitchen roaming hvd.png",[(766, 231, 907, 473, "fri"),(680, 399, 753, 451, "cof"),(1796, 465, 1888, 621, "liv"),(1796, 796, 1888, 937, "bath"),(1200, 978, 1343, 1068, "bedmc"),(1520, 970, 1679, 1068, "cath")])



    if result == "fri":
        scene kitchen roaming
        play sound "sound/fridgeopen.ogg"
        mcm "Let's see what we have."
        mcm "And here we go!!! Empty again..."
        mcm "I guess it's pizza night again tonight."
        jump kitroam1

    elif result == "cof":
        scene kitchen roaming
        play sound "sound/nexprexo.ogg"
        scene black
        with Pause(3)
        with dissolve
        stop sound
        mcm "That was good."
        jump kitroam1


    elif result == "liv":
        scene kitchen roaming
        jump eventliv1

    elif result == "bath":
        scene kitchen roaming
        jump eventbath1


    elif result == "bedmc":
        scene kitchen roaming
        jump bedmcroam1

    elif result == "cath":
        scene kitchen roaming
        jump cathbedroam1
Last edited by Ariku on Mon Nov 19, 2018 2:16 am, edited 2 times in total.

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: notify hovered on renpy.image map

#2 Post by IrinaLazareva »


Ariku
Newbie
Posts: 2
Joined: Sun Nov 18, 2018 12:31 pm
Contact:

Re: notify hovered on renpy.image map

#3 Post by Ariku »

Thanks a lot for your link. I switched all to hotspot. From what you made me understand renpy.imagemap is not flexible at all.

Anyway works now like a charm. Thanks a lot for your help. I m sorry I haven t manage to find it before :)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]