[Structure of code execution] How does GDevelop runs events?

What I want to know…

is how the events are running on the game?
For example:
–if I have a event like: the variable “state” of Player = “idle”
–and a action to it like: at Player position X add 10
–the event above is the only one from the scene.

So, how is the flow of execution?
Gdevelop runs all contions firstly and set which are true/false and fater it, runs over a list of that processed condtions and so runs which is true, is these way or is different on some aspects?

This is just for curiosity about the code and as are 24K line of code at the JS engine, I don’t know where to look firstly to see what I want.

Thanks!

https://wiki.gdevelop.io/gdevelop5/events/

How conditions are handled, order of execution, and object picking work are all in this section of the documentation.

1 Like

Oh, thanks man! I didn’t have saw it.

Ops, I want to say events over the game already exported as javascript, sorry for the confusion. I will export my game and see the code flow. I think that a simple example can give me more answers.

1 Like