No Revisions Have Been Made To This Page
Can you suggest an edit for this page? Click Here
GML Code Example
|placement||The PlayHaven placement name (a string)|
When generating content for the user using PlayHaven, the content can return callback values to your game, depending on what content it is and what rewards 8if any) are associated with it. To deal with this, you should create a script resource into which GameMaker: Studio will automatically pass the return arguments:
argument0- A real number that represents the quantity/value returned by PlayHaven. -1 means that the interstitial was closed by the user without any action being taken.
argument1- A string that contains the reward name as defined by you in the PlayHaven dashboard.
In this way with one single script you can reward the player
with in game currency, items, etc... depending on the quantity
returned and the reward name used.