Banner on top of layers and actors, and how to refresh the banner?
xwrbnx
Member Posts: 23
Hi all,
1.
Is banner triggered using ShowBanner behaviour always put on top of any layer?
It means always on top of the layers and other actors, no matter which actor call the ShowBanner, no matter in which layer the actor who Show the banner, no matter if there will be other actors spawned in front layer at any point of time during the game?
Can anybody confirm this?
2.
How do we refresh the banner to show different ads after a period of time?
Do we just simply use timer and call the show banner behaviour every certain time?
Example:
Timer: Every 40 seconds
Call ShowBanner behaviour
Is it just like that? Or do we need to destroy the previous banner first? If yes, how to do that?
Thank you in advance.
Comments
bump up...
1) yes
@Braydon_SFX Has a great tutorial video. You can watch it here
Thanks, @RabidParrot , I use the method in the video. However, when viewing in Android Viewer, it crash the viewer/ game in the viewer when it is time to reshow the banner.
Testing with changing scene when there is banner also cause crash.
It is just fine in Creator preview.
I wonder whether it is just in viewer and not in real app later. It is very frustrating.
Any suggestion? Thanks.
For #2, the ads are controlled by the ad service. Destroying the actor won't necessarily ensure that a different ad is displayed.
Try testing Ad-Hoc. I wouldn't think a couple of timers would make the viewer crash.
For admob I'm pretty sure you can set the refill rate.
The Show Banner behavior causes the android viewer to crash.
Bug: http://bugs.gamesalad.com/show_bug.cgi?id=1270
Hi @QASalad , thanks for the link to the bug URL. Is it in the list of fixes in the near future? Thanks.
Regarding your earlier response "the ads are controlled by the ad service", does it mean the method referred by RabidParrot (recall the ShowBanner behaviour) is unnecessary?
Does it mean we just need to call the ShowBanner once and we will just need to set the refresh rate in the iAds page?
Thanks in advance.
Yes, yes, and yes.