How to make admob ads show every 3 death? Please be specific, thank you. (im a real noob sorry)

I would like to set the ads so they are shown once every three times the “GameOver” scene is loaded, please be specific and detailed, I am not very good at C#. Thanks.

The forum is not a good place to ask for people to write your scripts for you. It is a good place for you to show your current script which was supposed to do what you want, but doesn’t, for you to describe what it is doing wrong, and someone often will point out how to fix it.

1 Like

Have some persistent “deathCounter” which you increment everytime GameOver() is called. After incrementing it, check foe example if ‘deathCounter % 3 == 0’ to trigger your ads. I would highly recomment you to take a good look the basics of programming tho. Because this is really, really basic. And when i hear people asking about how to play ads, or implement a microtransaction shop, before they are able to code these, it triggers some red flags about their intentions. Otherwise there are always people willing to code your stuff for you - given you pay them of course.

2 Likes

Don’t. Pop-up ads are disgusting. Make them on-demand or don’t make them at all.

2 Likes