Time for action – inserting an advertisement into our game
Before proceeding, ensure that the final, ready-to-publish version of the game is open in Stencyl.
Open the Main Menu scene.
Click the Events button at the top of the Scene Designer screen.
Click +Add Event | Basics |When Creating.
Rename the event to
Display Mochi Ad
.In the instruction block palette, select Game | Flash.
In the Mochi section of the palette, locate the show ad with size (w: 0, h: 0) block and drag it into the new when created event.
In the new show ad with size (w: 0, h: 0) block, change the w: entry to
640
and the h: entry to480
.Ensure that the new event appears as shown in the following screenshot:
Click on the Settings icon in the main Stencyl toolbar.
Select Web in the list of options in the left-hand side panel and ensure that the Services option is selected at the top of the main dialog box panel.
Accurately enter the unique Game ID into the Mochi Game ID text box and click OK.
Test the game. When the game loads the...