SOLVED! (Change Duration of Transition)

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
Offworlder
Regular
Posts: 114
Joined: Mon Aug 20, 2018 6:33 pm
Contact:

SOLVED! (Change Duration of Transition)

#1 Post by Offworlder »

I'm attempting to lengthen the duration of various transitions, starting with "fade". To clarify, I'm referring to making the fade itself go more slowly, not the pause between scenes.

Based on the documentation and everything I've found elsewhere online, I should just be able to use something like "with fade(1.5)". However, adding the "(1.5)" (or any other number) gives me this error:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 24, in script
    with fade(1.5)
TypeError: 'MultipleTransition' object is not callable

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/script.rpy", line 24, in script
    with fade(1.5)
  File "C:\Users\sans\Desktop\Projects\renpy-7.1.0-sdk\renpy\ast.py", line 1357, in execute
    renpy.exports.with_statement(trans, paired)
  File "C:\Users\sans\Desktop\Projects\renpy-7.1.0-sdk\renpy\exports.py", line 1455, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "C:\Users\sans\Desktop\Projects\renpy-7.1.0-sdk\renpy\display\core.py", line 2217, in do_with
    clear=clear)
  File "C:\Users\sans\Desktop\Projects\renpy-7.1.0-sdk\renpy\display\core.py", line 2662, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "C:\Users\sans\Desktop\Projects\renpy-7.1.0-sdk\renpy\display\core.py", line 3002, in interact_core
    new_widget=layers_root)
TypeError: 'MultipleTransition' object is not callable

Windows-7-6.1.7601-SP1
Ren'Py 7.1.0.882
Palette Swap 1.0
Fri Sep 14 18:17:45 2018
I assume I'm doing something wrong, but I have no idea what. D:
Any help would be appreciated.[/s]

SOLVED! Thanks, philat.
Lowercase f for normal fade, uppercase F when changing the duration.
Last edited by Offworlder on Sat Sep 15, 2018 9:30 pm, edited 4 times in total.

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

Re: Extending Transitions

#2 Post by philat »

fade and Fade() are not the same thing. https://www.renpy.org/doc/html/transitions.html#Fade

User avatar
Offworlder
Regular
Posts: 114
Joined: Mon Aug 20, 2018 6:33 pm
Contact:

Re: Extending Transitions

#3 Post by Offworlder »

OH! Wow, I never even considered that. I was so used to everything being lowercase that I completely overlooked the difference.

Thanks so much for your help!

Post Reply

Who is online

Users browsing this forum: Bing [Bot]