Integrate Ads PubCenter in GameScreen class only.

Jan 19, 2012 at 5:23 PM

Hi all,

I need to insert the ads in GameScreen only, but this class has not LoadContent() method because it not derive from Game class.

How can accomplish that?

Thank you

Bye

 

-Kafar

 

 

Developer
Jan 21, 2012 at 1:03 AM

LoadGraphics is the equivalent of LoadContent inside GameScreen. I do all of the loading in the delegate that is passed to _bgLoader.BeginLoad(), and in there you have access to the GraphicsDevice (device) and ContentManager (c).

Jan 21, 2012 at 2:00 PM

Thank you very much, I resolve it. My issue was the wrong attribution coordinate position shows in this link: http://www.expansionflow.com/?p=133

Another question: when I use PubCenter ads in XNA I can set the "Image480_80" only or also "TextAd". If I use "TextAd" the ads rectangle not shows in GameScreen.

Thanks

-Kafar

Coordinator
Jan 23, 2012 at 11:03 PM

Kafar, this is something you're going to have to experiment with.  You're working with a 3rd party API on top of our engine.  I'd experiment and see where they recommend having stuff load