That error goes away if I divide it into 3 separate lines similar to what I had above but then the
action OpenURL(
You must be registered to see the links
) line gets a new error of "expected statement".
Let me guess, the error you get looks exactly like this :
Code:
File "game/script.rpy", line XYZ: expected statement.
imagebutton:
^
So, hmm...
Ren'py is a game engine that have three different languages. The first one is the "
You must be registered to see the links
", that you use in init blocks, label blocks and for some inline code. The second one is the "
You must be registered to see the links
", that you use in image blocks and show/scene blocks. And the third one is the "
You must be registered to see the links
", that you use in screens blocks.
You got an error because you are using what is part of the "screen language", inside a label. You should have something like :
Code:
screen myScreen():
imagebutton:
idle "bleh.png"
action OpenURL("https://coding is hard.com")
and not the :
Code:
label whatever:
imagebutton:
idle "bleh.png"
action OpenURL("https://coding is hard.com")
that you wrote.
Perhaps that you should dedicate some times to the study of
You must be registered to see the links
, to learn at least
You must be registered to see the links
. It's just a question of few hours, but it will permit you to avoid this kind of errors.