Referência de funções
GameMaker Studio · GML · Setup & session
gmda_status
True once the session is active AND all tables have finished loading at least once.
Synchronous (returns directly)
Signature
gmda_status() -> realWhat it does
Reports the combined readiness of the lifecycle: the session is active and the initial table load reached the ready phase.
Parameters
This function takes no parameters.
How to call it
Read it any time, typically to gate UI that needs leaderboard data. You can also just react to the tables_loaded event instead of polling this.
Returns: 1 when data is ready to display, otherwise 0.
Example
if (gmda_status() == 1) {
var grid = gmda_getTabledata(1);
// draw the ranking from grid
}Use cases
- Gate UI that needs leaderboard data until the first load completes.
- Decide whether to show a spinner or the real ranking.