Hi,
I have a workflow question. I am creating a platform game, some of the levels only allow the user to attempt them once unless they watch the reward video. I am playing the video no problem, however I am not sure how to work things.
I assume that I should only call the “appodeal.init” once? If this is the case then I should place this, along with the listener, in my main.lua.
Now if this is the case then how do I know if the add is finished in my main code? I know I can check if event.phase==“playbackEnded” and event.type==“rewardedVideo” in the event listener, but how do I act on this on a completely different scene? What I want to happen is that once the video is watched that the button changes from “watch video” to “repeat”.
I can think of two options, have an “appodeal.init” in each scene where I need to check for the state of something happening, or add a runtime enterframe event that checks the value of some variable that is updated in the main listener.
Is either of these the right way?
Thanks for your help.
Craig