Chartboost reward video problem
Hello!
I am working on my first game so sorry if this is a stupid question I'm still new.
I have it setup to use Chartboost reward videos like this:
1.) Click on the "watch a reward video button"
2.) Loads reward video scene with "reward video ad" checked, video starts playing
3.) In a hidden actor on the reward scene, when game.Ad Reward.value >0 it updates the gem count, and redirects them back to the first scene where they originally clicked on the "watch a reward video" button
Here is where the problem comes in...
Chartboost seems to send the reward as soon as the video starts playing (perhaps this is because you can't stop the video as far as I can tell?), so I see the correct scene load in the background (rewards get added, scene changes) as the reward video starts playing.
BUT, when the reward video is complete, instead of just closing and being on the correct scene (which has already loaded), closing the video takes me back to the now frozen reward video scene for some reason. I can't even close out of this scene with my close button because everything seems disabled.
Any ideas? Thanks!
Comments
Hmmm in test mode it doesn't add the reward until the video ends.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Maybe I setup something wrong chart boost side, all my checks have been in GS. I'll look into that.
In my tests I wasn't getting the reward until after the video. To refuse the video just touch it. It will stop it and take you to a chartboost help section, why I don't know but you'll see it doesn't add the reward. This is all in test mode, not live.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
It seems like the rewarding before the video is done had to do with it being cached (at least that's my guess), because when I tested it some more and more (and more) sometimes it would (at about half way through the video playing) and sometimes it wouldn't.
Either way, what seemed to be causing everything to freeze up was me trying to kick directly back to the scene after giving reward points. When I instead generate a button that says "You have been rewarded, click to continue" and have that button load the scene there is no issue. :-/ I guess i'll do that for now.
Thanks for your help!