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.
So I now have a problem with my splash screen that didn't show up before. My splash screen use to work perfectly fine but now it doesn't. I can't really help anymore than that.
image black = "#000"
image logo = "logo.png"
label splashscreen:
scene black
with Pause(1)
play sound "ping.ogg"
show logo with dissolve
with Pause(2)
scene black with dissolve
with Pause(1)
return
I am a friendly user, please respect and have a good day.
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
I tried what you guys said I should do but the same thing still happens. I don't know if this will help but this started after I added my splash screen an image.
image logo = "Splash Screens/Logo.png"
label splashscreen:
scene black
pause 1.0
show logo with dissolve
pause 2.0
scene black with dissolve
pause 1.0
return
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
or putting the logo bitmap inside the images folder (or even into a subfolder inside the images folder) and then simply calling it by its name without extension.
Here's a splash screen example from one of my games (image splash.png is inside a "ui" folder that's inside the "images" folder:
label splashscreen:
scene black
show splash:
truecenter
with Dissolve(1.0)
play music "bgm/yeah.OGG"
scene black
with Dissolve(2.0)
return
# The game starts here.
label start:
stop music fadeout 2.0
scene classroom
"Well, professor Eileen's lecture was interesting."
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/gui.rpy", line 2: expected statement.
^
Ren'Py Version: Ren'Py 7.1.3.1092
Fri Mar 01 19:48:49 2019
label splashscreen:
scene black
pause 1.0
show logo at truecenter
with fade
pause 2.0
hide logo
with dissolve
pause 1.0
return
################################################################################
## Initialization
################################################################################
An important note is that I get the error even when I delete the splashscreen code.
The error is telling you it expects a statement, and in the preceding line you have an image definition, so it treats that as a block, finds no block, and says "where's the block?"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Ok I finally got it to work!! It was all my fault cause what happened was I had it to skip everything in the settings menu and it for some reason skips the splashscreen too. The error was because there was an empty space in the first line. Thank you for all of you guys' help, it is very much appreciated!