ATL + $ renpy.pause(#, hard=True)

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
Apa
Regular
Posts: 103
Joined: Fri Dec 23, 2016 2:26 am
Location: NYC
Contact:

ATL + $ renpy.pause(#, hard=True)

#1 Post by Apa »

A question related to the following topic:
Ace94 wrote: Wed Dec 20, 2017 3:02 am I also use

Code: Select all

$ renpy.pause(12, hard=True)
so that the animation plays for 12 seconds before allowing the player to continue.
Is there a statement to add to ATL transforms, like "wait_until_complete", so I don't have to [re]calculate total or partial duration every time I make a change ($ renpy.pause(12, hard=True))
Will be nice to have smth. like:

Code: Select all

image b_animated:
    "0.png" with Dissolve(0.5)
    "1.png" with Dissolve(0.5)
    "2.png" with Dissolve(0.5)
    wait_until_complete
    "3.png" with Dissolve(0.5)
    "4.png" with Dissolve(0.5)
    "5.png" with Dissolve(0.5)
so it'll do hard pause for duration of 1st 3 ATL statements. :oops:

Ace94
Regular
Posts: 113
Joined: Sat Apr 08, 2017 4:22 pm
Contact:

Re: ATL + $ renpy.pause(#, hard=True)

#2 Post by Ace94 »

Perhaps you could do 2 separate animation sequences? One with a hard pause and then have the rest be on a separate animated sequence without a hard pause that does a follow-up?

Like this for example:

Code: Select all

image b_animated:
    "0.png" with Dissolve(0.5)
    "1.png" with Dissolve(0.5)
    "2.png" with Dissolve(0.5)
image c_animated:
    "3.png" with Dissolve(0.5)
    "4.png" with Dissolve(0.5)
    "5.png" with Dissolve(0.5)
and then have it be displayed like this:

Code: Select all

$ renpy.show("b_animated")
    $ renpy.pause(3, hard=True)
$ renpy.show("c_animated")
But if you want it to be an automated process so you don't have to calculate how much of a pause to give the pause statement, then I don't know of such thing, but I'd be glad to find out as well.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: ATL + $ renpy.pause(#, hard=True)

#3 Post by Imperf3kt »

Just use block
I think that was the name for it.

Code: Select all

image mythingymobobdoohickywhatsit:
    "image" # x3
    block:
        "image 2"

Then when showing the image:

Code: Select all

    show mythingymobobdoohickywhatsit
    $ renpy.pause (3, hard=True)
Forgive the short reply, its midnight and I have work in just over 5 hours
Last edited by Imperf3kt on Thu Dec 21, 2017 3:28 pm, edited 1 time in total.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Apa
Regular
Posts: 103
Joined: Fri Dec 23, 2016 2:26 am
Location: NYC
Contact:

Re: ATL + $ renpy.pause(#, hard=True)

#4 Post by Apa »

Ace94 wrote: Thu Dec 21, 2017 8:07 am Perhaps you could do 2 separate animation sequences? One with a hard pause and then have the rest be on a separate animated sequence without a hard pause that does a follow-up?
Won't it be the same as

Code: Select all

image b_animated:
    "0.png" with Dissolve(0.5)
    "1.png" with Dissolve(0.5)
    "2.png" with Dissolve(0.5)
    "3.png" with Dissolve(0.5)
$ renpy.pause(1, hard=True) # pause until 2.png is shown
And if you separate image definition and show + pause statements, it’ll be more difficult to have them "in sync", IMO.


Imperf3kt wrote: Thu Dec 21, 2017 9:00 am

Code: Select all

    show mythingymobobdoohickywhatsit
    $ renpy.pause (3, hard=True)
Sorry, I don’t see how it helps to solve the problem:
Apa wrote: Wed Dec 20, 2017 6:35 pmI don't have to [re]calculate total or partial duration every time I make a change ($ renpy.pause(12, hard=True))

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot]