You see, I have a very long splashscreen (around 12 seconds), and I thought it'd be good to have a Skip button.
My problem is I kept getting an "end of line expected" error.
There's probably a simple enough solution that I can't wrap my head around yet, I'm sure...
Anyway, here is my code in script.rpy
Code: Select all
label splashscreen:
textbutton "Skip" action return align(.95, .95)
scene black
play sound "sfx/Underwater Bubbles Sound.mp3"
play music "music/Splash.mp3"
show logo with dissolve:
xalign 0.5 yalign 0.5
# ...The rest are too long and unnecessary to paste
return
File "game/script.rpy", line 90: end of line expected.
textbutton "Skip" ->action return align(.95, .95)
Then I thought I needed to add indentations, so I tried this
Code: Select all
label splashscreen:
textbutton "Skip":
action return
align(.95, .95)
scene black
play sound "sfx/Underwater Bubbles Sound.mp3"
play music "music/Splash.mp3"
show logo with dissolve:
xalign 0.5 yalign 0.5
# ...The rest are too long and unnecessary to paste
return
I don't quite understand what "end of line expected" actually means, I thought it just wants me to place each text on a separate line.File "game/script.rpy", line 90: end of line expected.
textbutton "Skip" ->:
I also attempted to remove the ":" after the textbutton "Skip" line but the "preceding say statement doesn't expect a block", whatever that means.
Any help is appreciated, thank you!