Skip to main content

Call vs Jump

Author: NingNing
Last update:2022-05-21


Call Statement

  • It is use to tranfer from a plot to another one
  • We can use call to jump from plot A -> to plot B -> and after back to plot A again
  • Example: call next_story
    • So the story will jupm to a label that called next_story
    • After the story of next_story finished, Renpy will return to the original plot
  • Example:
    call is like when you are reading a book and you just read the end of the first chapter and want to know the ending now, so you put a bookmark at the end of the first chapter, and then you go directly to the last chapter , after finish reading the story of the last chapter, you want to go back to the first chapter and continue reading the middle story

Jump Statement

  • It is also used to jump the plot
  • Use jump to jump from plot A -> to plot B
  • Example: jump next_story
  • The story will jump to a label named next_story
    • After the plot of next_story ends, you will see the next plot directly so you won't return to the original plot
  • Example:

jump is like you are reading a book and you feel uhhhh the plot is a bit boring so you want to jump directly to the 5th chapter, after the 5th chapter you are also not interested in the previous story So you just go straight to the 6th chapter

Difference between call and jump

So what's the difference between call and jump?
When to use call and when should jump be used?

I will say:

  • call is used if you need to return the plot to the origin and
  • jump when the current label is not needed anymore

Example

jump

label memory:
"wow this tree is so huge, mom!"
"In memory..."

label start:
scene park
"I think I've seen this before"
"Have I been to this park?"
jump memory
"Hmm, so nostalgic"

return

call

label memory:
"wow this tree is so huge, mom!"
"In memory..."
return

label start:
scene park
"I think I've seen this before"
"Have I been to this park?"
call memory
"Hmm, so nostalgic"

return

Preview:
https://youtu.be/KJ6-P4cft5Y


This post is over now~ You can give me / my website a clap if this help you! My website --> https://spaceofningningen.blogspot.com/ Image Alt Thank you for your support~