I'm relatively new to JS and programming in general, so apologizes if I'm asking something that might be obvious.
My first question is related to background processes, specifically processes that need to occur every frame. In the case of my game, that would be updates to the various HUD elements I have onscreen while on the map scene.
I'm currently using parallel common events in order to handle the updates by writing new functions to the game interpreter, but I've noticed that plugins are not doing it this way, and would alias the refresh/update functions of other objects (mostly scene_map or game_map) instead for constant updates.
I'd like to know if there's a definitive "better" way of doing it, in terms of performance and accuracy of the updates?
My second question may be more suitable for plugin support, but since it doesn't pertain to any specific plugin I might as well put it here.
My game relies heavily on spawning events, and given that spawned events are not present on the map when it first loads, those events aren't affected by any processes provided by plugins that alias the initialization of scene_map or game_map. Once I load the map a second time, everything is fine of course, but I'd like to find a solution.
If I want to spawn events when scene_map or game_map initializes for the first time in a playthrough (only the first, and not in any subsequent updates), which function should be aliased and how would you make sure it only happens the first time?
My first question is related to background processes, specifically processes that need to occur every frame. In the case of my game, that would be updates to the various HUD elements I have onscreen while on the map scene.
I'm currently using parallel common events in order to handle the updates by writing new functions to the game interpreter, but I've noticed that plugins are not doing it this way, and would alias the refresh/update functions of other objects (mostly scene_map or game_map) instead for constant updates.
I'd like to know if there's a definitive "better" way of doing it, in terms of performance and accuracy of the updates?
My second question may be more suitable for plugin support, but since it doesn't pertain to any specific plugin I might as well put it here.
My game relies heavily on spawning events, and given that spawned events are not present on the map when it first loads, those events aren't affected by any processes provided by plugins that alias the initialization of scene_map or game_map. Once I load the map a second time, everything is fine of course, but I'd like to find a solution.
If I want to spawn events when scene_map or game_map initializes for the first time in a playthrough (only the first, and not in any subsequent updates), which function should be aliased and how would you make sure it only happens the first time?