Auto-Skipping Imagemaps help? [SOLVED]

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
AsHLeX
Miko-Class Veteran
Posts: 556
Joined: Wed Dec 25, 2013 1:09 pm
Completed: Starlight Dreamers, Mysterious Melody, Town of Memories, Marked, To Fly, The Change, Him From The Past, A Forgotten Memory
Projects: Cafe Mysteria
Location: Malaysia
Contact:

Auto-Skipping Imagemaps help? [SOLVED]

#1 Post by AsHLeX »

When the player presses "skip" button, the game just automatically picks the first choice in an image map and continues to skip. Anyway to fix this?
And if I want to disable the "skip" function and "auto" function completely, how do I do this?
Deleting the "skip" button in screens doesn't work as the shortcut "ctrl" seems to still function as a skip button...
Thank you in advance for taking your time to answer this question :)

P.S: I used the "show" option for the image maps and not the "call" option. I also used to "dismiss button" so that the player cannot click while in the image map

Code: Select all

screen planets:
    key "dismiss" action [[]]
    imagemap:
        ground "hallwayopt.jpg"
        hover "options.png"
       
        hotspot (79, 224, 273, 205) clicked Jump("ScienceLab")
        hotspot (376, 225, 289, 205) clicked Jump("Classroom")
        hotspot (694, 226, 273, 205) clicked Jump("Cafeteria")
Last edited by AsHLeX on Sat Mar 01, 2014 1:19 am, edited 1 time in total.
Image
New demo out 24/12/23!!

jw2pfd
Regular
Posts: 87
Joined: Tue Sep 18, 2012 9:55 pm
Location: DFW, TX, USA
Contact:

Re: Auto-Skipping Imagemaps help?

#2 Post by jw2pfd »

There is a config variable that can control whether the user can skip or not - http://www.renpy.org/doc/html/config.ht ... w_skipping
Alternately, you can also change key bindings from the keymap specifically for the skipping controls - http://www.renpy.org/doc/html/keymap.html

There might be a way to achieve what you want without disabling skipping, but I have no idea.

philat
Eileen-Class Veteran
Posts: 1910
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Auto-Skipping Imagemaps help?

#3 Post by philat »

I don't know how you've written your script, but $ ui.interact()will force the game to wait for input.

Code: Select all

show screen planets
$ ui.interact()

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Auto-Skipping Imagemaps help?

#4 Post by Asceai »

Make your screen modal.

Code: Select all

screen planets:
    modal True

User avatar
AsHLeX
Miko-Class Veteran
Posts: 556
Joined: Wed Dec 25, 2013 1:09 pm
Completed: Starlight Dreamers, Mysterious Melody, Town of Memories, Marked, To Fly, The Change, Him From The Past, A Forgotten Memory
Projects: Cafe Mysteria
Location: Malaysia
Contact:

Re: Auto-Skipping Imagemaps help?

#5 Post by AsHLeX »

Thank you so much for your answers! :D
I managed to get it to work~ *happy*
Really, thank you!!
Image
New demo out 24/12/23!!

Post Reply

Who is online

Users browsing this forum: No registered users