Skip to main content

Adding an Extension to GameMaker

In this article, we will explain how to add the GamePush extension to GameMaker.

tip

The latest version of the extension is available at this link.

The extension requires IDE 2023.2.0.71, Runtime 2023.2.0.87 or higher.

Adding your game to the control panel

Before starting the installation of the GamePush extension in your GameMaker project:

  1. Add your game to the control panel.
  2. Click the Add game button.
  3. In the new window, give your game a name and click the Add game button. After that, you will enter the project interface. To add the project to GameMaker, you will need the Project ID and Public Key.

Adding the extension to GameMaker

  1. Go to this link and download the latest version of the extension.

  1. Import the plugin through the import of local packages.

  1. Select all resources for import.

Configuring the extension in GameMaker

  1. In the GamePush control panel, copy the Project ID and Public Token.

  1. Open the GamePush extension settings in GameMaker and paste the Project ID and Public token into the corresponding fields.

  1. If you want to display ads immediately upon opening the game, enable the checkboxes for Show preloader ad? (Fullscreen ad) and Show sticky ad? (Banner).

Example of displaying rewarded ads

  1. Call the function to display ads. You can specify any tag.

  1. The viewing result will arrive in the asynchronous Social event. The event type will be GamePush.

The GamePush_CallAdsRewardedStart event indicates the start of the ad display.

The GamePush_CallAdsRewardedClose event indicates the end of the ad display.

The GamePush_CallAdsRewardedReward event indicates the successful completion of the rewarded ad. The player's reward must be granted.

Useful information

Repository link: https://gitlab.com/trumdu/gm-gamepush

Author: @trumdu

Stay in Touch

Other documents of this chapter available Here. To get started, welcome to the Tutorials chapter.

GamePush Community Telegram: @gs_community.

For your suggestions e-mail: [email protected]

We Wish you Success!