In GameMaker, there's an event called the "begin step" event. Any code in that event will be triggered at the start of the frame, before the regular step event and other triggers. Is there something similar in Construct 3?
The reason I ask this is because I'm using global variables to store player data like HP, since the data needs to be persistent across layouts and the Persist behaviour doesn't seem to work for this. Then every tick, I'm giving this data to the player in the form of instance variables.
The problem here is that if I try to update my health bar based on the player's variables, it will update the health bar after HP has been changed globally, but before it has been added to the player. A "begin step" condition would solve this immediately.
Here's my project file if you need a closer look: ufile.io/1ol4z
The health bar code is held in eCharacters, the global variables are held in eGlobals, and the data copying is also done in eGlobals.
Any help is appreciated.