Unskippable images for a short animation

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
Galebourn
Newbie
Posts: 2
Joined: Thu Apr 02, 2015 7:00 pm
Contact:

Unskippable images for a short animation

#1 Post by Galebourn » Fri Apr 03, 2015 11:33 am

I'm working on a VN right now and I made a short animation with single background images indicate the change between days in the story.
It's pretty basic and looks like this:

Code: Select all

    show bg day1
    with Dissolve(1.0)
    pause 1.0    
    show bg day1b
    with Dissolve(1.0)
    show bg day0
    with Dissolve(1.0)
    show bg day2b
    with Dissolve(1.0)
    show bg day2
    with Dissolve(1.0)
    show bg kitchen
The problem is that many test readers (including myself) skip the entire animation by one single click.
I'm looking for a way to make this short animation unskippable, but $ config.skipping = False didn't work.
There must be a way to do this, but I started using Ren'Py 3 days ago and I'm not that familiar with Python.
However, I checked the cookbook first and couldn't find anything like that.

I'm glad for any help I can get.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Unskippable images for a short animation

#2 Post by trooper6 » Fri Apr 03, 2015 12:22 pm

Not allowing people to skip during an animation is normally done with a hard pause. Here is a thread that talks about it:
http://lemmasoft.renai.us/forums/viewto ... hard+pause
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
octacon100
Regular
Posts: 163
Joined: Thu Sep 12, 2013 11:23 pm
Projects: Regeria Hope
Organization: Golden Game Barn
IRC Nick: Octacon100
Location: Boston, MA
Contact:

Re: Unskippable images for a short animation

#3 Post by octacon100 » Fri Apr 03, 2015 12:22 pm

EDIT: Gah! Split second ninja'd!

Whenever I'm setting up animations I don't want to be skipped, I use this right after the animation:

$ renpy.pause(2.0, hard=True)

"hard" means that clicks don't stop the pause. There is probably better ways out there to do this, but it works for me.
Image
Current Digital Projects -
Image
Regiera Hope Completed Game Forum Post

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Unskippable images for a short animation

#4 Post by nyaatrap » Fri Apr 03, 2015 1:06 pm

BTW, pause with seconds is a transition (equals to 'with Pause(seconds)'. I wrote 'pause' is 'renpy.pause' in the past in this forum, but it's a mistake). If you skip transitions, pause will be also skipped. ren'py.pause is a real stop function. If you want to add a stopping skip point between transitions, use renpy.pause(0). 0 is no time so it usually do nothing, but it works to execute/stop some functions.

Galebourn
Newbie
Posts: 2
Joined: Thu Apr 02, 2015 7:00 pm
Contact:

Re: Unskippable images for a short animation

#5 Post by Galebourn » Sat Apr 04, 2015 10:43 am

Thank you guys very much, this worked like a charm.

Post Reply

Who is online

Users browsing this forum: zyric