Creating a non-stopable intro [CLOSED]

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
User avatar
YeOlde_Monk
Newbie
Posts: 9
Joined: Wed Jun 04, 2014 9:58 am
Completed: --Work in progress--
Projects: *Doesn't_have_name_yet*
Organization: Tolma4 Team
Location: Russia, Tambov
Contact:

Creating a non-stopable intro [CLOSED]

#1 Post by YeOlde_Monk »

I've been doing my game until I stuck at point of intro (or whatever it's called). Another words, I've wanted to do a black screen, then appearing text says "Chapter 1", then underneath it another text "Name-of-a-chapter", and it should have disappered together. I tried a lot of ways to manage the problem, but I just don't have enough knowledge to make this "intro". Maybe there should be a python code which can make auto-read or something to go to the next string. Anyway, this is what I've done (and, of course, it's still not working):

Code: Select all

    scene black with dissolve
    centered "{b}{size=+12}Chapter 1{/size}{/b}" with Dissolve(2.0)
    scene black with dissolve
    centered "{b}{size=+12}Fail after fail{/size}{/b}" with Dissolve(2.0)
    scene black with dissolve
Ideally, it should look like this: an intro to every mission of Mafia II (for example).
If anyone can help me, I'd be very appreciated and be sure - if you do - you'll get to the credits of my game (if ever completed) with best regards.
Not much, I know, but the best I can is to say Thank You as "loud" as I can.
Last edited by YeOlde_Monk on Sun May 10, 2015 6:14 am, edited 1 time in total.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: Creating a non-stopable intro

#2 Post by xavimat »

You can try this:

Code: Select all

image chap1_title:
    Text("{b}{size=+12}Chapter 1{/size}{/b}")
    xalign .5 yalign .45
image chap1_subtitle:
    Text("{b}{size=+12}Fail after fail{/size}{/b}")
    xalign .5 yalign .55

# The game starts here.
label start:

    scene black with None
    show chap1_title with Dissolve(2.0)
    show chap1_subtitle with Dissolve(2.0)
    hide chap1_title
    hide chap1_subtitle
    with Dissolve(2.0)
This code uses the Text() class to create a displayable that is not an image, but a text, that is displayed as images are.

A different issue is to prevent the user to stop the intro by clicking (as the title of your post suggest...).
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
YeOlde_Monk
Newbie
Posts: 9
Joined: Wed Jun 04, 2014 9:58 am
Completed: --Work in progress--
Projects: *Doesn't_have_name_yet*
Organization: Tolma4 Team
Location: Russia, Tambov
Contact:

Re: Creating a non-stopable intro

#3 Post by YeOlde_Monk »

Holy ****! You are genious indeed!!!! Many thanks to you!! ^___^
xavimat wrote:A different issue is to prevent the user to stop the intro by clicking (as the title of your post suggest...).
Can I do something like "block clicking for [few] seconds" or something? Like turning off the rollback?

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: Creating a non-stopable intro

#4 Post by xavimat »

You can use a hard pause, BUT this is very user-unfriendly:

Code: Select all

$ renpy.pause(2.0, hard=True)
Some of your players maybe don't want to wait, or are re-playing and the hard-pauses become annoying...

Documentation here: http://www.renpy.org/doc/html/other.html#renpy.pause

More of this (or similar) topic hereand here.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
YeOlde_Monk
Newbie
Posts: 9
Joined: Wed Jun 04, 2014 9:58 am
Completed: --Work in progress--
Projects: *Doesn't_have_name_yet*
Organization: Tolma4 Team
Location: Russia, Tambov
Contact:

Re: Creating a non-stopable intro

#5 Post by YeOlde_Monk »

xavimat wrote:Some of your players maybe don't want to wait, or are re-playing and the hard-pauses become annoying...
Yeah, that makes sense.
Thank you once again! You've done a really big help)
Consider your name already in credits)))

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot]