We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This guide explains how to use the GameDistribution Store API in a Construct 2 project using the Execute JavaScript action.
Use the "Execute JavaScript" action in Construct 2 to interact with the Store API. Example:
gdsdk.executeStoreAction({ action: 'ui.open' });
gdsdk.executeStoreAction({ action: 'ui.close' });
await gdsdk.executeStoreAction({ action: 'api.items' });
await gdsdk.executeStoreAction({ action: 'api.buyProduct', payload: { sku: 'ss-enhance-shield-5', quantity: 1 } });
await gdsdk.executeStoreAction({ action: 'api.inventoryItems' });
More actions are available in the full documentation (see link below).
🔗 Download Example Construct 2 Game (.zip)
🖼️ Example UI:
➡️ View the full HTML5 SDK Store API Documentation