display text in dialogue textbox on imagemap screen

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
User avatar
REDREDSWAP
Newbie
Posts: 15
Joined: Sat Jun 23, 2018 9:49 am
Projects: Road to Hinata
Location: Canada
Contact:

display text in dialogue textbox on imagemap screen

#1 Post by REDREDSWAP »

hello!!

i'm currently working on my inventory screen and i want to text to show in the textbox when the user hovers over the possible items in the inventory. first, i tried tooltips and it didn't do anything at all :/ and now, i tried infobox and setscreenvariable and it doesn't do anything at all too. here's a vague idea on how i plan to set my screens:

Code: Select all

screen inventory:

    add "drawer.png"

screen blush:

    default infobox = "My friends"

    if blush in items:

        imagemap:
            ground "blush.png"
            hover "blushhover.png"
            alpha True

            hotspot (309, 400, 118, 224) hovered SetScreenVariable("infobox", "blush") action Jump("blush")
ideally, it would roughly look like this when the item is hovered: Image

in my game, when needed, i show the inventory screen and call the screen for the item

Code: Select all

 $ items.append(blush)

    "Yay I got some!"

    show screen inventory
    call screen blush
    with fade

    "i like it"

    return
thank you so much for your help!
ImageImage
no thread yet but will create one soon! looking for a proofreader

Post Reply

Who is online

Users browsing this forum: Google [Bot]