Skip to content

Methods for closing a label

Exodia edited this page Jul 18, 2022 · 23 revisions

( Undergoing Improvement )

It is very important to understand how to close labels: to avoid ending the game prematurely, apply the most suitable backgrounds, controls on events...

return

Return is the recommended method in basic cases.

IMPORTANT: it should not be used after a Jump otherwise it will cause the game to end.

Pros:

  • Performance

Cons:

  • Cannot be used after Jump
  • Does are the basic controls

call screen room_navigation

Use it in case you don't want to use the selected background later and don't know want any kind of event.

call screen room_navigation

Pros:

  • Performance
  • Can be used after Jump

Cons:

  • Does not change the last background used
  • Not do any search to see if anything has been changed in the meantime
  • Will not start any Event
  • Will not start any Closed Room

jump after_spending_time

IMPORTANT: don't need it if you use Time Label

Use this in case of manual time change.

(code-snippets: DR_ActionAdd_in_dict)

jump after_spending_time

Pros:

Cons:

call change_room(after_exit=True)

Pros:

Cons:

scene expression (cur_room.bg) as bg

Clone this wiki locally