Hi,
I'm a little confused on how to get this working right.
There is a lot of locations to choose from, but how does it know these locations in the game?
Like how does it know when you are in the main menu, or home screen, or when it's paused?
When my character dies, I want to give the option to watch the video ad to continue from that spot instead of restarting the level.
How do I setup the locations in my game. Like how could I setup the UI when you die to one of those locations?
I'm a beginner programmer so hopefully it's a simple task.
Thanks and I appreciate you taking the time to make these actions!
Hello,
These actions do not know what is happening in your game, the locations are basically just "Save Slots" for your convenience incase you have more than one ad showing in the game, to have a reference each one what is it for.
For Example, in your case:
At the startup scene of your game, you can ad the action "Has Rewarded Video", check the location "Game Over" then you have to actions to continue from, Success and Fail.
If Success, Send an event to Idle or to load the next scene "Main menu or something", so basically do nothing, because you have a video already cached in your game data.
If Fail, that means there is no video cached in your game data, so then you have to call for an event "Cache Rewarded Video", having a video cached will prevent a call to Chartboost when you want to how a video, and will almost instantly load it. Ofcorse choose the Location "Game Over"
Now when your player dies, you can have one the game over menu, certain navigation buttons
1) Menu
2) Restart
3) Watch Video (To continue from same spot). Now here you send an event, OnClick (Show Rewarded Video). From here you have to do your calls with chartboost, or what you would like to reward the player upon watching the video. Like an event to resume level from same spot.
There is an example scene with the Chartboost actions that will explain what I have here, let me know if you need any help.
Peace!