In which order is code executed?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Eddous

My guess is following:

  1. Call every ready function
  2. Physics: check collisions, overlaps etc. (signals are emitted here)
  3. Call every physics_process function
  4. repeat from step 2.
:bust_in_silhouette: Reply From: jgodfrey

Here’s a good discussion on the topic:

https://godotforums.org/discussion/21849/is-there-a-graphic-or-explanation-of-the-order-of-events-that-happen-in-the-godot-game-loop