Adding a pause in a screen?

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
SLim_Games
Newbie
Posts: 23
Joined: Tue Mar 20, 2018 11:37 am
itch: slim-games
Contact:

Adding a pause in a screen?

#1 Post by SLim_Games »

Hi!
So my question is: can I add a pause when I call a screen?
I got a little animation that should play before it shows the imagemap.
Yes I could just put the animation before calling the screen but the screen is called by another screen.
It should look something like this:

Code: Select all

screen openPhone:
    imagemap:
        ground "extra/phoneIcon.png"
        hover "extra/phoneIconH.png"
        hotspot(1206, 1, 72, 100):
            action Show("openPhoneIcon")
screen openPhoneIcon:
    modal True
    add ("openPhone")
  ---> Put pause here <---
    imagemap:
        ground "extra/1mac.png"
        hover "extra/1mac.png""
Play my game (nsfw) for free at: https://www.patreon.com/SLim_Games

kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: Adding a pause in a screen?

#2 Post by kivik »

Have you tried adding a transition to the Show() function? The documentation says: https://www.renpy.org/doc/html/screen_actions.html#Show

Code: Select all

Show(screen, transition=None, *args, **kwargs)
So perhaps (untested):

Code: Select all

screen openPhone:
    imagemap:
        ground "extra/phoneIcon.png"
        hover "extra/phoneIconH.png"
        hotspot(1206, 1, 72, 100):
            action Show("openPhoneIcon", transition=dissolve)

Post Reply

Who is online

Users browsing this forum: No registered users