Help on video and scrolling in a visual novel

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
Link2link8
Regular
Posts: 46
Joined: Tue Jul 13, 2010 4:10 pm
Location: Bristol UK
Contact:

Help on video and scrolling in a visual novel

#1 Post by Link2link8 »

I was wondering how to make a video appear at the beginning of the game when it boots up (before it goes to the main menu) and also if it's possible to make it so that videos can't be skipped (for example on accident)

One other issue I need help is how to step the game from going backwards, like when someone makes a choice in a game and goes forward then they would scroll backwards together back to cheat or make another choice, cause on my visual novel I can scroll from the very end to the very beginning and it annoys me when that happens...

playswithtribbles
Regular
Posts: 82
Joined: Tue Sep 22, 2009 2:29 pm
Projects: 'Paths of Twilight' A Fantasy GxB game with a RPG flavor. Sprites: 18% Script: 35-38% BGs: 18% Music: 100%
Location: Kashyyyk
Contact:

Re: Help on video and scrolling in a visual novel

#2 Post by playswithtribbles »

-Check this out for info about the video:
http://www.renpy.org/wiki/renpy/doc/coo ... een_Effect
-I'm not sure how to make it so they can't be skipped...

-There are a couple of ways to prevent rollback:
-The easiest way:

Code: Select all

menu:
    "Choice 1":
        $ renpy.block_rollback()
        "You picked choice 1"
    "Choice 2":
        $ renpy.block_rollback()
        "You picked choice 2"
Using the $ renpy.block_rollback() function prevents the player from scrolling back.

- Another way to do this is to put this in the options folder:

Code: Select all

init -1 python hide:

    ##This controls how far back the player can rollback, in this case: 5 times
    config.hard_rollback_limit = 5
This way, the player can only scroll back the amount of times you specify.
-Dark Helmet-"And so you see Lonestar, that evil will always triumph! Because good is dumb."

Link2link8
Regular
Posts: 46
Joined: Tue Jul 13, 2010 4:10 pm
Location: Bristol UK
Contact:

Re: Help on video and scrolling in a visual novel

#3 Post by Link2link8 »

Thanks tried all of this and it worked! really you don't know how much help this has been for me +rep or whatever system there is, also thanks for the info on the "scroll back the amount of times you specify" part, didn't know this (or any of the coding you said) =D

playswithtribbles
Regular
Posts: 82
Joined: Tue Sep 22, 2009 2:29 pm
Projects: 'Paths of Twilight' A Fantasy GxB game with a RPG flavor. Sprites: 18% Script: 35-38% BGs: 18% Music: 100%
Location: Kashyyyk
Contact:

Re: Help on video and scrolling in a visual novel

#4 Post by playswithtribbles »

Your welcome. ... Do I get a cookie now?
-Dark Helmet-"And so you see Lonestar, that evil will always triumph! Because good is dumb."

Link2link8
Regular
Posts: 46
Joined: Tue Jul 13, 2010 4:10 pm
Location: Bristol UK
Contact:

Re: Help on video and scrolling in a visual novel

#5 Post by Link2link8 »

playswithtribbles wrote:Your welcome. ... Do I get a cookie now?
Image

you mean these cookies lol?

playswithtribbles
Regular
Posts: 82
Joined: Tue Sep 22, 2009 2:29 pm
Projects: 'Paths of Twilight' A Fantasy GxB game with a RPG flavor. Sprites: 18% Script: 35-38% BGs: 18% Music: 100%
Location: Kashyyyk
Contact:

Re: Help on video and scrolling in a visual novel

#6 Post by playswithtribbles »

Yah! Cookies...
-Dark Helmet-"And so you see Lonestar, that evil will always triumph! Because good is dumb."

Post Reply

Who is online

Users browsing this forum: No registered users