How do i speed up my 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
amaturemanga
Regular
Posts: 94
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

How do i speed up my transitions? (SOLVED)

#1 Post by amaturemanga » Thu Sep 17, 2015 4:06 pm

Hey everyone i'm trying to add transitions to my sprites and everything is working fine there's no problem with. However the transitions seem to be a bit slow. I was wondering how i could speed it up. Atm i'm showing and hiding the sprite using blinds and for facial changes and poses i'm using dissolve. But i'd like to get it more like how it is in fate/stay night. Also the blinds seem to be a bit thick can i make them thinner somehow? Here's the script for the scene it's happening in:

Code: Select all

show wakeup2 with dissolve
show Saki impatient with blinds
s "\"Seriously, you know you're really pathetic, right? You need to start getting up on your own..\""
nvl clear
window hide fade



player "\"Haha, like your one to talk. Wasn't it the other day that i had to wake you up?\""
hide Saki impatient with dissolve
show Saki surprised with dissolve
s"\"Huh?\""
hide Saki surprised with dissolve
show Saki mad1 with dissolve
s "\"Idiot!\""
hide Saki mad1 with dissolve
show Saki blush with dissolve
s"\"Hmph. Idiot, you know very well i was sick that day.\""

story "Meet Saki Itsuka. My impatient next door neighbor and childhood friend."
story "Five years ago, my parents got a job offer in America."
story "Ever since that day, she's been coming over everyday to help me out around the house."
nvl clear
window hide fade

player "\"Hehe, careful now. That attitude is gonna make you fat someday.\""
hide Saki blush with dissolve
show Saki annoyed with dissolve
s "\"Hey! What's that suppose to mean? Are you trying to get me to hit you again?\""
player "\"Oh come on Saki. You know i'm just trying to mess with you.\""
hide Saki annoyed with dissolve
show Saki blush with dissolve
s "\"Yeah, yeah, just hurry up and get up already we're going to be late for class if you don't hurry.\""
hide Saki blush with blinds
story "Hestantly i get up stretching, and hurry out of my room as Saki pushs on my back to get me to hurry up."
nvl clear
window hide fade

hide wake2
stop music
show breakfast with blinds
play music "Feelin Good.mp3"
player "\"Yeah,yeah i know. I'm hurrying would you quit pushing me!\""


return
    
Last edited by amaturemanga on Fri Sep 18, 2015 5:49 am, edited 1 time in total.

User avatar
Jae
Regular
Posts: 192
Joined: Sun Sep 13, 2015 5:41 pm
Projects: Pokémon Academy Life
Location: New York, NY
Contact:

Re: How do i speed up my transitions?

#2 Post by Jae » Thu Sep 17, 2015 4:13 pm

Try:

with Dissolve(insert number of seconds here)?

Not sure what the default is.

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: How do i speed up my transitions?

#3 Post by SundownKid » Thu Sep 17, 2015 4:27 pm

Or you can define a new transition.

Code: Select all

define fastdissolve = Dissolve(0.2)
To change the transition itself you'll have to use:
http://www.renpy.org/doc/html/transitio ... geDissolve

With a new image of your own creation.

User avatar
amaturemanga
Regular
Posts: 94
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: How do i speed up my transitions?

#4 Post by amaturemanga » Thu Sep 17, 2015 4:55 pm

SundownKid wrote:Or you can define a new transition.

Code: Select all

define fastdissolve = Dissolve(0.2)
To change the transition itself you'll have to use:
http://www.renpy.org/doc/html/transitio ... geDissolve

With a new image of your own creation.
ok i tried that with the dissolve and it worked perfectly but it's not working for the blinds i'm getting object not callable error

Code: Select all

Full traceback:
  File "game/script.rpy", line 128, in script
    show Saki impatient with fastblinds
  File "C:\Users\amaturemanga\Desktop\renpy-6.18.3-sdk\renpy\ast.py", line 1236, in execute
    renpy.exports.with_statement(trans, paired)
  File "C:\Users\amaturemanga\Desktop\renpy-6.18.3-sdk\renpy\exports.py", line 1251, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "C:\Users\amaturemanga\Desktop\renpy-6.18.3-sdk\renpy\display\core.py", line 1857, in do_with
    clear=clear)
  File "C:\Users\amaturemanga\Desktop\renpy-6.18.3-sdk\renpy\display\core.py", line 2276, in interact
    repeat, rv = self.interact_core(preloads=preloads, **kwargs)
  File "C:\Users\amaturemanga\Desktop\renpy-6.18.3-sdk\renpy\display\core.py", line 2486, in interact_core
    new_widget=layers_root)
TypeError: 'ImageDissolve' object is not callable

Windows-7-6.1.7601-SP1
Ren'Py 6.99.4.467
FirstVisualNovel 0.50

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

Re: How do i speed up my transitions?

#5 Post by philat » Thu Sep 17, 2015 6:58 pm

How did you define fastblinds? Did you specify it correctly with the right image? (Btw if you edit the image you can make the blinds thinner.)

User avatar
amaturemanga
Regular
Posts: 94
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: How do i speed up my transitions?

#6 Post by amaturemanga » Thu Sep 17, 2015 7:03 pm

philat wrote:How did you define fastblinds? Did you specify it correctly with the right image? (Btw if you edit the image you can make the blinds thinner.)

Code: Select all

define fastblinds = blinds(0.2)
##area of script i want it to work
show Saki impatient with fastblinds
s "\"Seriously, you know you're really pathetic, right? You need to start getting up on your own..\""
nvl clear
window hide fade

player "\"Haha, like your one to talk. Wasn't it the other day that i had to wake you up?\""
hide Saki impatient with fastdissolve
show Saki surprised with fastdissolve
s"\"Huh?\""
hide Saki surprised with fastdissolve
show Saki mad1 with fastdissolve
s "\"Idiot!\""
hide Saki mad1 with fastdissolve
show Saki blush with fastdissolve
s"\"Hmph. Idiot, you know very well i was sick that day.\""

story "Meet Saki Itsuka. My impatient next door neighbor and childhood friend."
story "Five years ago, my parents got a job offer in America."
story "Ever since that day, she's been coming over everyday to help me out around the house."
nvl clear
window hide fade

player "\"Hehe, careful now. That attitude is gonna make you fat someday.\""
hide Saki blush with fastdissolve
show Saki annoyed with fastdissolve
s "\"Hey! What's that suppose to mean? Are you trying to get me to hit you again?\""
player "\"Oh come on Saki. You know i'm just trying to mess with you.\""
hide Saki annoyed with fastdissolve
show Saki blush with fastdissolve
s "\"Yeah, yeah, just hurry up and get up already we're going to be late for class if you don't hurry.\""
hide Saki blush with fastblinds
story "Hestantly i get up stretching, and hurry out of my room as Saki pushs on my back to get me to hurry up."
nvl clear
window hide fade


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

Re: How do i speed up my transitions?

#7 Post by philat » Fri Sep 18, 2015 4:24 am

SundownKid linked to ImageDissolve for a reason. blinds and dissolve are defined in the common files (00definitions.rpy, to be precise) as the following:

Code: Select all

define blinds = ImageDissolve(im.Tile("blindstile.png"), 1.0, 8)
define dissolve = Dissolve(0.5)
ImageDissolve and Dissolve are different and you need to supply different information to define each. Therefore, if you want a faster version of blinds you need to use the following:

Code: Select all

define fastblinds = ImageDissolve(im.Tile("blindstile.png"), 0.2, 8)
As I said before, you can change the image (blindstile.png) to something else if you want thinner blinds.

User avatar
amaturemanga
Regular
Posts: 94
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: How do i speed up my transitions?

#8 Post by amaturemanga » Fri Sep 18, 2015 5:48 am

philat wrote:SundownKid linked to ImageDissolve for a reason. blinds and dissolve are defined in the common files (00definitions.rpy, to be precise) as the following:

Code: Select all

define blinds = ImageDissolve(im.Tile("blindstile.png"), 1.0, 8)
define dissolve = Dissolve(0.5)
ImageDissolve and Dissolve are different and you need to supply different information to define each. Therefore, if you want a faster version of blinds you need to use the following:

Code: Select all

define fastblinds = ImageDissolve(im.Tile("blindstile.png"), 0.2, 8)
As I said before, you can change the image (blindstile.png) to something else if you want thinner blinds.
ok now it's working thank you

Post Reply

Who is online

Users browsing this forum: Bing [Bot]