Auto Forward Toggled Each Start Problem (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
Shad12ow
Regular
Posts: 168
Joined: Tue Nov 15, 2011 9:20 pm
Projects: Kage's Room
Location: Indonesia
Contact:

Auto Forward Toggled Each Start Problem (SOLVED)

#1 Post by Shad12ow » Sun Mar 03, 2013 11:43 am

Hey there!
I am working on a quick menu. It already appeared quite nicely. The problem is that every time I start the game, the auto forward is always toggled in the first time. I can disable it using the button, but it is quite annoying.
Here is the code for my quick menu.

Code: Select all

##############################################################################
# Quick Menu
#
# A screen that's included by the default say screen, and adds quick access to
# several useful functions.
screen quick_menu:

        imagemap:   
            ground "GUI/QMenu_Ground.png"
            idle "GUI/QMenu_Idle.png"
            hover "GUI/QMenu_Hover.png"
            selected_idle "GUI/QMenu_Hover_2.png"
            selected_hover "GUI/QMenu_Hover_3.png"
            insensitive "GUI/QMenu_Insensitive.png"
            xalign 1.0
            yalign 1.0
            
            #hotspot (481,89,55,50) action QuickSave()
            #hotspot (536,89,52,50) action QuickLoad()
            #hotspot (588,89,51,50) action ShowMenu('save')
            #hotspot (639,89,56,50) action Skip()
            #hotspot (695,89,53,50) action Preference("auto-forward", "toggle")
            #hotspot (748,89,52,50) action ShowMenu('preferences')
            
            hotspot (0,0,55,50) action QuickSave()
            hotspot (55,0,52,50) action QuickLoad()
            hotspot (107,0,51,50) action ShowMenu('save')
            hotspot (158,0,56,50) action Skip()
            hotspot (214,0,53,50) action Preference("auto-forward", "toggle")
            hotspot (267,0,52,50) action ShowMenu('preferences')
Thank you for the help! :mrgreen:
Last edited by Shad12ow on Mon Mar 04, 2013 6:44 am, edited 1 time in total.

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Auto Forward Toggled Each Start Problem

#2 Post by Alex » Sun Mar 03, 2013 6:08 pm

A few lines after "quick_menu" screen you can find

Code: Select all

init -2 python:
    
    # Set a default value for the auto-forward time, and note that AFM is
    # turned off by default.
    config.default_afm_time = 10
    config.default_afm_enable = False
check the <config.default_afm_enable = False> (or try to find if you've changed it somewhere else in your script).

User avatar
Shad12ow
Regular
Posts: 168
Joined: Tue Nov 15, 2011 9:20 pm
Projects: Kage's Room
Location: Indonesia
Contact:

Re: Auto Forward Toggled Each Start Problem

#3 Post by Shad12ow » Sun Mar 03, 2013 7:42 pm

AH, thank you very much. Will try it at home.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Ocelot