This is the button:
screen devNight():
textbutton _("Dev Night") style "stdButton" xalign 0.5 yalign 0.5 action Jump("toNight")
Works like a charm
Here's a block I jump to as a placeholder, mess around in it, have a button (devMorning) to jump to the next section or want to just return to the start of this one if I don't click it.
label toNight:
scene dream_encounter_01_c01 with dissolve
hide screen devNight
show devNightIntro
$renpy.pause()
scene dream_encounter_01_c02 with dissolve
hide devNightIntro
narrator "Introducing a second layer in the game"
scene dream_encounter_01_c03 with dissolve
narrator "Showing you some renders"
scene dream_encounter_01_c04 with dissolve
show screen devMorning
narrator "But no spoilers"
jump "toNight"
#return
I tried with and without return (after all, I have little idea of what I'm doing, apparently) to no avail.
But I get an 'expected label name not found' while the button finds it. How?
Thanks in advance
(also, I google my ass of thinking somebody else must have encountered this problem without hits. Am I *that* weird?)
expected label name not found .. but the button finds it?
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.
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.
-
william_dickson
- Newbie
- Posts: 10
- Joined: Tue Apr 23, 2019 1:18 am
- Completed: >10 html5/canvas javascript browser games
- Organization: eroticinteractivegames.com
- Location: Glasgow, Scotland
- Contact:
-
OrsonDeWitt
- Regular
- Posts: 35
- Joined: Thu Dec 06, 2018 3:23 am
- Contact:
Re: expected label name not found .. but the button finds it?
I think your issue is that you're using quotation marks. It should be
Also, return can only be used when you're doing
Code: Select all
jump toNightCode: Select all
call toNight-
william_dickson
- Newbie
- Posts: 10
- Joined: Tue Apr 23, 2019 1:18 am
- Completed: >10 html5/canvas javascript browser games
- Organization: eroticinteractivegames.com
- Location: Glasgow, Scotland
- Contact:
Re: expected label name not found .. but the button finds it?
God I'm such a dork. I took 'm from the button, they need them there :/
And it's seriously not the only two labels I'm jumping to and from (or indeed Call)
/me slaps forhead.
Thanks!
And it's seriously not the only two labels I'm jumping to and from (or indeed Call)
/me slaps forhead.
Thanks!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]