Jumping to label from screen

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.
Post Reply
Message
Author
User avatar
Bartulisica
Regular
Posts: 93
Joined: Sun Aug 30, 2015 5:11 am
Organization: ArizonaIdentities
Location: Croatia
Discord: ArizonaIdentities
Contact:

Jumping to label from screen

#1 Post by Bartulisica »

Is there a way to jump on a label from screen, since jump and Jump doesn't work?
It works within a button, but can I jump automatically without using a button?

Code: Select all

if (x,y) == guard1_sight:
        jump restart
.. this obviously doesn't work, since jump is not a valid child for screen statement, but I'll put it here just to help you see my problem. :)
- ArizonaIdentities

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Jumping to label from screen

#2 Post by xela »

You can but this is a really bad idea for a number of reasons... try finding another way of doing it.
Like what we're doing? Support us at:
Image

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot]