-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewarded video function to get reward #103
Comments
These values are defined in the Admob backend. When the
|
If I write the code:
I cannot be sure the person watched the reward video. The person will get 100 health. I tried this:
but it doesnt work. Because it doesnt return true or false, and the parameters are false i think. |
First, you shouldn't pass the current and amount arguments, they will be returned from the admob server. Second, you must call Third, if the Please check the example code and the readme file to see how it works. |
@burakgulmez issue still persists? |
Why my on_rewarded(currency, amount) show this error
I define in Admob site. reward type is money and amount is 10000 I hope you will help me with this. Thank you |
Hey @nyelare , this function is a "callback function" this mean when AdMob receives a rewarded he will call this function into your game project, like this: https://github.com/kloder-games/godot-admob/blob/master/examples/godot-3/main.gd#L108-L110 Please use the example project to see how module works: https://github.com/kloder-games/godot-admob/blob/master/examples/godot-3/ |
@gustavottc okay thank you! I already got it <3 |
OS target: Android
Godot version: 3.1
In _on_rewarded(currency, amount) function, what is currency and amount? Are they variable name in game? For example my game character has a variable named health. Should i write "health" to currency? How can i code the player gets reward after watching video? How can I connect variable and the rewarded function?
The text was updated successfully, but these errors were encountered: