Show an imagemap and the textbox at the same time?

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
rainbowparadoxes
Newbie
Posts: 8
Joined: Mon Oct 27, 2014 3:47 pm
Contact:

Show an imagemap and the textbox at the same time?

#1 Post by rainbowparadoxes » Mon Oct 27, 2014 8:02 pm

Is it possible to show an imagemap and the textbox at the same time, and if so, how?

User avatar
TheChris
Regular
Posts: 47
Joined: Sat Oct 11, 2014 9:26 pm
Projects: Stickshooter
Deviantart: innocencecanceller
Location: United States
Contact:

Re: Show an imagemap and the textbox at the same time?

#2 Post by TheChris » Mon Oct 27, 2014 8:30 pm

Here's what I did.

In the script:

Code: Select all

label start:
    e "This is a test"
    e "more testing"
    show screen example
    e "well, what happened"
    e "is it working"
    hide screen example
    e "xxx"
    e "yyy"
and then in the screens.rpy I used:

Code: Select all

screen example:
    
    imagemap:
        ground "menu_gm_idle.png"
        hover "menu_gm_hover.png"
        
        hotspot (252,173,282,46) action Return()
        hotspot (252,222,282,47) action ShowMenu('save')
        hotspot (252,273,282,49) action ShowMenu('load')

rainbowparadoxes
Newbie
Posts: 8
Joined: Mon Oct 27, 2014 3:47 pm
Contact:

Re: Show an imagemap and the textbox at the same time?

#3 Post by rainbowparadoxes » Wed Oct 29, 2014 7:58 pm

Not exactly what I was looking for, but your response to my other post involving text boxes and imagemaps worked great. I think I can get it from here.
Thank you so much for replying to both of my posts! It helped so much! :)

User avatar
TheChris
Regular
Posts: 47
Joined: Sat Oct 11, 2014 9:26 pm
Projects: Stickshooter
Deviantart: innocencecanceller
Location: United States
Contact:

Re: Show an imagemap and the textbox at the same time?

#4 Post by TheChris » Wed Oct 29, 2014 8:06 pm

rainbowparadoxes wrote:Thank you SOO much! It would have taken me FOREVER to do that on my own. I got the text boxes working. There goes one hurdle.
Thanks again! :lol:
I'm glad I could help, and good luck with your game!

Post Reply

Who is online

Users browsing this forum: No registered users