splashscreen/intro

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
amaturemanga
Regular
Posts: 94
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

splashscreen/intro

#1 Post by amaturemanga » Sun Mar 08, 2015 6:59 pm

hey everyone im trying to make a splashscreen/intro but im stumped this what i have so far when i test it out in renpy all that appears is a white screen then it blinks black and goes to main menu the text never appears i want the text to fade in and out before going to the main menu:

Code: Select all

# The game starts here.
label splashscreen:
   scene black 
    with Pause(1)
    
    show text "AmatureManga Productions Presents
    a story by: AmatureManga   and   Art by: SilverKazeNinja" with dissolve
    with Pause(2)
    
    hide text with dissolve
    with Pause(1)
 label start:

User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: splashscreen/intro

#2 Post by wyverngem » Sun Mar 08, 2015 7:05 pm

For the splashscreen the with pause needs to be this instead

Code: Select all

$ renpy.pause(1)
Change 1 to however many seconds you wish for the text to display before moving on.

User avatar
amaturemanga
Regular
Posts: 94
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: splashscreen/intro

#3 Post by amaturemanga » Sun Mar 08, 2015 7:47 pm

wyverngem wrote:For the splashscreen the with pause needs to be this instead

Code: Select all

$ renpy.pause(1)
Change 1 to however many seconds you wish for the text to display before moving on.
thank you but now im getting an indentation mismatch on line 21 can you tell me what i did wrong?

Code: Select all

# The game starts here.
label splashscreen:
   scene black 
    $ renpy.pause(10)
    
    show text "AmatureManga Productions Presents
    a story by: AmatureManga   and   Art by: SilverKazeNinja" with dissolve
    $ renpy.pause(2)
    
    hide text with dissolve
    $renpy.pause(1)
 label start:
   
    e "You've created a new Ren'Py game."

    e "Once you add a story, pictures, and music, you can release it to the world!"
 return

User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: splashscreen/intro

#4 Post by wyverngem » Sun Mar 08, 2015 7:58 pm

The alignment for your start menu is off. There's an extra space where there shouldn't be in front of your line of code starting at the start label.

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: splashscreen/intro

#5 Post by trooper6 » Sun Mar 08, 2015 8:14 pm

Generally speaking all your indents look off.

Each level of indent should be 4 spaces. You should indent after colons, but not otherwise. In the code you posted, you have an indent after scene black, and I don't know why. Your start label is not fully brought back to where it should be, you have it indented by one space. Generally speaking, be more careful on your indents.

I think it should look more like:

Code: Select all

# The game starts here.
label splashscreen:
    scene black 
    $ renpy.pause(10)
    
    show text "AmatureManga Productions Presents
    a story by: AmatureManga   and   Art by: SilverKazeNinja" with dissolve
    $ renpy.pause(2)
    
    hide text with dissolve
    $renpy.pause(1)

label start:
   
    e "You've created a new Ren'Py game."

    e "Once you add a story, pictures, and music, you can release it to the world!"
    return
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
amaturemanga
Regular
Posts: 94
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: splashscreen/intro

#6 Post by amaturemanga » Sun Mar 08, 2015 8:21 pm

trooper6 wrote:Generally speaking all your indents look off.

Each level of indent should be 4 spaces. You should indent after colons, but not otherwise. In the code you posted, you have an indent after scene black, and I don't know why. Your start label is not fully brought back to where it should be, you have it indented by one space. Generally speaking, be more careful on your indents.

I think it should look more like:

Code: Select all

# The game starts here.
label splashscreen:
    scene black 
    $ renpy.pause(10)
    
    show text "AmatureManga Productions Presents
    a story by: AmatureManga   and   Art by: SilverKazeNinja" with dissolve
    $ renpy.pause(2)
    
    hide text with dissolve
    $renpy.pause(1)

label start:
   
    e "You've created a new Ren'Py game."

    e "Once you add a story, pictures, and music, you can release it to the world!"
    return
thank you trooper now the splashscreen is sortof working black screen has been created and its pausing but now the words EOL while scanning string literal (<none> line1) are fading in, in red and the text boxes for the visual novel are appearing before the main menu. the text that i want to fade in and out still isnt appearing

philat
Eileen-Class Veteran
Posts: 1853
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: splashscreen/intro

#7 Post by philat » Sun Mar 08, 2015 9:03 pm

Fix the two things below. The problem with the first is that the line break isn't playing nice with show, and the second is because the splashscreen doesn't "end" -- it goes straight into label start.

Code: Select all

label splashscreen:
    scene black 
    $ renpy.pause(1)
    
    show text "AmatureManga Productions Presents\na story by: AmatureManga   and   Art by: SilverKazeNinja" with dissolve ## fix
    $ renpy.pause(2)
    
    hide text with dissolve
    $renpy.pause(1)
    return ## fix

User avatar
amaturemanga
Regular
Posts: 94
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: splashscreen/intro

#8 Post by amaturemanga » Sun Mar 08, 2015 9:12 pm

philat wrote:Fix the two things below. The problem with the first is that the line break isn't playing nice with show, and the second is because the splashscreen doesn't "end" -- it goes straight into label start.

Code: Select all

label splashscreen:
    scene black 
    $ renpy.pause(1)
    
    show text "AmatureManga Productions Presents\na story by: AmatureManga   and   Art by: SilverKazeNinja" with dissolve ## fix
    $ renpy.pause(2)
    
    hide text with dissolve
    $renpy.pause(1)
    return ## fix
THANK YOU!! Now its working.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]