Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AdMob Banner Position Issue

Author
Message
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 31st Dec 2016 01:29
I just added some AdMob monetisation to a little shooting game I'm working on, but the banner is appearing in the wrong place (screenshot below). The line that generates this banner is:
CreateAdvert(0, 1, 2, 1)
Which should place the banner at the bottom, in the middle as far as I can tell from the docs. Anyone know what I'm doing wrong?

Thanks!

p.s. It is intentionally a test banner at the moment.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign

Attachments

Login to view attachments
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 31st Dec 2016 11:27
I have solved my problem by manually positioning the add to the bottom of the screen using:


(I am using 100x100 virtual res for this).

V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Midget Blaster
AGK Developer
8
Years of Service
User Offline
Joined: 7th May 2016
Location:
Posted: 31st Dec 2016 14:04
That's interesting, but I think you should use GetScreenBoundsLeft() and GetScreenBoundsRight() so when a user plays your app on a tablet with a 4:3 resolution. Ill be using that since all my games are always 800x450 or 450x800.

Login to post a reply

Server time is: 2024-09-29 21:26:17
Your offset time is: 2024-09-29 21:26:17