Can't change speed of transitions [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
Ararothea
Newbie
Posts: 3
Joined: Wed Sep 13, 2017 12:54 pm
Projects: Working Title: NEETO
Contact:

Can't change speed of transitions [solved]

#1 Post by Ararothea »

I feel like a total goof, but I cannot seem to get my transitions to change speed.

I thought I understood it to be something like:

Code: Select all

show bg room
with pixellate(2.0,)
I've searched the forum, but can't seem to find what I need.

I'm very new to coding in general, so I wouldn't be surprised if I've simply overlooked something...
Last edited by Ararothea on Thu Oct 19, 2017 3:38 pm, edited 1 time in total.

User avatar
Belgerum
Regular
Posts: 110
Joined: Thu Nov 06, 2014 12:24 am
Skype: belgerum09
Soundcloud: Belgerum
itch: Belgerum
Contact:

Re: Can't change speed of transitions

#2 Post by Belgerum »

It's just a simple error of formatting and syntax. The correct code you're looking for is:

Code: Select all

show bg room
with Pixellate(2.0)
or alternately,

Code: Select all

show bg room with Pixellate(2)
Remember that code is case-sensitive.

User avatar
Ararothea
Newbie
Posts: 3
Joined: Wed Sep 13, 2017 12:54 pm
Projects: Working Title: NEETO
Contact:

Re: Can't change speed of transitions

#3 Post by Ararothea »

EDIT: This still isn't working. I have tried both ways, and I am getting an error message.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 25, in script
    show bg room with Pixellate(2)
TypeError: __init__() takes at least 3 arguments (4 given)

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

Full traceback:
  File "game/script.rpy", line 25, in script
    show bg room with Pixellate(2)
  File "/home/ararothea/Downloads/Game project Resources/renpy-6.99.12.4-sdk/renpy/ast.py", line 1275, in execute
    renpy.exports.with_statement(trans, paired)
  File "/home/ararothea/Downloads/Game project Resources/renpy-6.99.12.4-sdk/renpy/exports.py", line 1381, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "/home/ararothea/Downloads/Game project Resources/renpy-6.99.12.4-sdk/renpy/display/core.py", line 2096, in do_with
    clear=clear)
  File "/home/ararothea/Downloads/Game project Resources/renpy-6.99.12.4-sdk/renpy/display/core.py", line 2526, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "/home/ararothea/Downloads/Game project Resources/renpy-6.99.12.4-sdk/renpy/display/core.py", line 2746, in interact_core
    new_widget=layers_root)
  File "/home/ararothea/Downloads/Game project Resources/renpy-6.99.12.4-sdk/renpy/curry.py", line 38, in __call__
    **dict(self.kwargs.items() + kwargs.items()))
TypeError: __init__() takes at least 3 arguments (4 given)

Linux-4.4.0-53-generic-i686-with-debian-stretch-sid
Ren'Py 6.99.12.4.2187
NEETO 1.0

User avatar
RicharDann
Veteran
Posts: 286
Joined: Thu Aug 31, 2017 11:47 am
Contact:

Re: Can't change speed of transitions

#4 Post by RicharDann »

According to the documentation, Pixellate needs an aditional parameter called steps.

https://www.renpy.org/doc/html/transiti ... #Pixellate

So you just need to add it after the time:

Code: Select all

show bg room with Pixellate(2.0, 5)
The most important step is always the next one.

User avatar
Ararothea
Newbie
Posts: 3
Joined: Wed Sep 13, 2017 12:54 pm
Projects: Working Title: NEETO
Contact:

Re: Can't change speed of transitions

#5 Post by Ararothea »

RicharDann wrote: Thu Oct 19, 2017 2:41 pm According to the documentation, Pixellate needs an aditional parameter called steps.

https://www.renpy.org/doc/html/transiti ... #Pixellate

So you just need to add it after the time:

Code: Select all

show bg room with Pixellate(2.0, 5)
You've saved me. I hadn't thought to add that, since the default looked fine. Thank you!

Post Reply

Who is online

Users browsing this forum: No registered users