I already explained it above but a little more clarification:
I have revive button,
when the user clicks on the button a reward video shows up,
when the video ends, the player will be taken back to the game scene where they play again.
I have got all that to work except for the part when the video ends and the player is taken back to the game.
This is all I have:
local appodeal = require( "plugin.appodeal" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization print( event.isError ) end if ( event.phase == "closed" ) then -- Successful initialization print( event.isError ) composer.gotoScene("game") end end -- Initialize the Appodeal plugin appodeal.init( adListener, { appKey="" } ) if ( appodeal.isLoaded( "rewardedVideo" ) ) then appodeal.show( "rewardedVideo",{placement="intPlacement"} ) end
Any ideas?