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.
-
SayuriSakurai
- Newbie
- Posts: 16
- Joined: Wed Jul 31, 2013 5:11 am
-
Contact:
#1
Post
by SayuriSakurai » Sat Aug 17, 2013 4:57 pm
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 142: expected statement.
xalign 0
^
File "game/script.rpy", line 143: expected statement.
yalign 0
^
File "game/script.rpy", line 144: expected statement.
xanchor 0
^
File "game/script.rpy", line 145: expected statement.
yanchor 0
^
File "game/script.rpy", line 146: expected statement.
linear 3 xalign 1.0 yalign 1.0
^
Ren'Py Version: Ren'Py 6.15.7.374
I chose a splashcreen for my game, and don't know how to use it. How embarrassing.
The splashcreen's size is 1560x780, while the game window is 1080x720. The code I used to try to make a panning effect on tthe splashcreen:
Code: Select all
label splashscreen:
show op
pause 3
show black with dissolve
$ renpy.pause(.2)
return
But it just won't work! Why?? T_T
-
Attachments
-

- The splashcreen.
Last edited by
SayuriSakurai on Sun Aug 18, 2013 10:45 am, edited 1 time in total.
-
Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- 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
- Projects: Slumberland
- Location: Brazil
-
Contact:
#2
Post
by Donmai » Sat Aug 17, 2013 6:26 pm
Without seeing your code it's difficult to say what's going wrong. You should use floating point numbers. Is this the effect you are after?
Code: Select all
label splashscreen:
scene black
$ renpy.pause(.5, hard=True)
show op with dissolve:
subpixel True yalign 1.0 xalign 0.0 #show the bottom left corner of the picture
linear 3.0 xalign 1.0 # pans to the right side
$ renpy.pause(6.0, hard=True) # waits for 6 sec
hide op with Dissolve(2.0) # hides the picture, showing the black screen that is under it all the time
$ renpy.pause(2.0, hard=True)
return
-
Elmiwisa
- Veteran
- Posts: 476
- Joined: Sun Jul 21, 2013 8:08 am
-
Contact:
#3
Post
by Elmiwisa » Sat Aug 17, 2013 6:32 pm
If the error message specifically said where the errors are (line 142-146 in file script.rpy in this case), I think it should actually look there as the starting point, and you might want to post the code there too.
-
SayuriSakurai
- Newbie
- Posts: 16
- Joined: Wed Jul 31, 2013 5:11 am
-
Contact:
#4
Post
by SayuriSakurai » Sat Aug 17, 2013 10:23 pm
Code: Select all
init:
image splashscreen:
"splash.png" with fade
xalign 0
yalign 0
xanchor 0
yanchor 0
linear 3 xalign 1.0 yalign 1.0
label splashscreen:
scene black
$ renpy.pause(.5, hard=True)
show op with dissolve:
subpixel True yalign 1.0 xalign 0.0 #show the bottom left corner of the picture
linear 3.0 xalign 1.0 # pans to the right side
$ renpy.pause(6.0, hard=True) # waits for 6 sec
hide op with Dissolve(2.0) # hides the picture, showing the black screen that is under it all the time
$ renpy.pause(2.0, hard=True)
return
That's the code I typed before.
-
Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- 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
- Projects: Slumberland
- Location: Brazil
-
Contact:
#5
Post
by Donmai » Sat Aug 17, 2013 10:53 pm
Ah, now it's easier to understand: you wanted to define your image as the animation. You've forgot to indent the lines.
Code: Select all
init:
image splash:
"splash.png" with fade
xalign .0 yalign .0 subpixel True
linear 3.0 xalign 1.0 yalign 1.0
Then the splashscreen label would have this code:
Code: Select all
label splashscreen:
scene black
$ renpy.pause(.5, hard=True)
show splash with dissolve:
$ renpy.pause(6.0, hard=True) # waits for 6 sec
hide splash with Dissolve(2.0) # hides the picture, showing the black screen that is under it all the time
$ renpy.pause(2.0, hard=True)
return
I've renamed the image to splash, to avoid confusion. Splashscreen is already the name of the label.
-
SayuriSakurai
- Newbie
- Posts: 16
- Joined: Wed Jul 31, 2013 5:11 am
-
Contact:
#6
Post
by SayuriSakurai » Sun Aug 18, 2013 10:45 am
Yay!!! It works the way I wanted!! Thanks, Donmai. You help me a lot!! Also, thanks, Elmwisa. We couldn't have solved this if you didn't suggest that I post the code!

Users browsing this forum: Google [Bot], Ocelot