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.
in order to activate the label.
I already tried to use Call instead of Jump but this froze my game, it kept looping the label.
I don't know what I'm doing wrong.
Maybe I forgot something?
Some basic troubleshooting steps. If your code is doing something for no reason whatsoever that you can see, attempt to isolate where the strange behavior is happening.
When something really crazy is going on I often find it handy to put in a ton of say statements so that I'm stepping through every stage of the process and I know exactly which line of code is doing something unexpected.
label start:
"Here is the start of the game. This part worked!"
"Now I'm going to jump to a label."
call loadgame_label
"I have now returned from a label, my life is over, end game."
$renpy.quit()
label loadgame_label:
"I jumped successfully, good start!"
"Trying to load a game now."
if renpy.can_load("GameSave"):
"Loadable game found. Loading..."
$renpy.load("GameSave")
else:
"No loadable game found. Trying to notify."
$renpy.notify("No save files have been found")
"Notified. Now returning."
return
obviously my text is a bit silly there and I'm not actually checking to see if that will run, just trying to give a general idea of how you can investigate weird behavior
I'm currently juming to the label from the main menu.
Maybe this gives you more clues on what's wrong as you're thinking that you jump to a label from the game start.
It seems only to be not working when I jump from a screen.