How to make transform unskippable?

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
dino999z
Newbie
Posts: 11
Joined: Wed May 15, 2019 12:18 pm
Contact:

How to make transform unskippable?

#1 Post by dino999z »

So I have this part where a robot first moves from the bottom to the center of the screen and then proceeds to move closer to the player, creating an effect of a jumpscare. But I notice that the player can skip the animation if they click really faster, making it look kind of unpleasant.

So is there a way to make a transform unskippable? My code looks like this:

Code: Select all

transform mansion_robot1_death_move_in:
        zoom 1.0 xoffset 0 yoffset 1000

        ease 0.2 xoffset 0 yoffset 0

        ease 0.5 zoom 1.5 xoffset -300 yoffset -100

    $ renpy.pause(0.1, hard='True')

    $ renpy.music.set_volume(0.6, delay=0, channel='sound1')
    $ renpy.music.play("music/first robot growl.ogg", channel="sound1", fadeout = 1.0, loop = False)

    show robot_1_death_scare at mansion_robot1_death_move_in

    with Shake((0.5, 1.0, 0.5, 1.0), 0.3, dist=30)
    $ renpy.pause(0.1, hard='True')

dino999z
Newbie
Posts: 11
Joined: Wed May 15, 2019 12:18 pm
Contact:

Re: How to make transform unskippable?

#2 Post by dino999z »

Resolved
Last edited by dino999z on Sun Jan 30, 2022 9:33 am, edited 1 time in total.

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: How to make transform unskippable?

#3 Post by Per K Grok »

dino999z wrote: Sun Jun 30, 2019 1:19 pm So I have this part where a robot first moves from the bottom to the center of the screen and then proceeds to move closer to the player, creating an effect of a jumpscare. But I notice that the player can skip the animation if they click really faster, making it look kind of unpleasant.

So is there a way to make a transform unskippable? My code looks like this:

Code: Select all

transform mansion_robot1_death_move_in:
        zoom 1.0 xoffset 0 yoffset 1000

        ease 0.2 xoffset 0 yoffset 0

        ease 0.5 zoom 1.5 xoffset -300 yoffset -100

    $ renpy.pause(0.1, hard='True')

    $ renpy.music.set_volume(0.6, delay=0, channel='sound1')
    $ renpy.music.play("music/first robot growl.ogg", channel="sound1", fadeout = 1.0, loop = False)

    show robot_1_death_scare at mansion_robot1_death_move_in

    with Shake((0.5, 1.0, 0.5, 1.0), 0.3, dist=30)
    $ renpy.pause(0.1, hard='True')
In $ renpy.pause(0.1, hard='True'), True is a boolean, not a string. It should not have citation marks around it.

Try
$ renpy.pause(0.1, hard=True)

Post Reply

Who is online

Users browsing this forum: Google [Bot]