Jump to content


hexdump

Member Since 13 Dec 2010
Offline Last Active Feb 23 2013 08:01 PM

Topics I've Started

background_create_from_surface bug?

26 October 2012 - 06:17 AM

Hi,

I have been trying to create a background from a surface. Everything is ok until I call background_create_from_surface. This is the code:

//Create BG and add it
var pf; pf=obj_playField;
var sf; sf=surface_create(room_width,room_height);
var i,j; i=0; j=0;

surface_set_target(sf);

draw_background(bg_image,0,0);

surface_reset_target();    

var bg; bg=background_create_from_surface(sf,0,0,room_width,room_height,false,false);


I'm running this outside a draw event. I'm trying to build a bg resource to use it later, but when I call background_create_from_surface the game is killed.

As a side note I must say this happens on IOS, on Windows it doesn't happens.

Does anybody see anything I'm doing wrongly? Is it a bug? I would really apreciate any help.

Thanks in advance.

Could anybody help creating a bg from a surface?

25 October 2012 - 09:34 PM

Hi,

I have been trying to create a background from a surface. Everything is ok until I call background_create_from_surface. This is the code:

//Create BG and add it
var pf; pf=obj_playField;
var sf; sf=surface_create(room_width,room_height);
var i,j; i=0; j=0;

surface_set_target(sf);

draw_background(bg_image,0,0);

surface_reset_target();    

var bg; bg=background_create_from_surface(sf,0,0,room_width,room_height,false,false);


I'm running this outside a draw event. I'm trying to build a bg resource to use it later, but when I call background_create_from_surface the game is killed.

As a side note I must say this happens on IOS, on Windows it doesn't happens.

Does anybody see anything I'm doing wrongly?

Thanks in advance.

Ads in landscape mode. Is it possible?

23 October 2012 - 09:25 PM

Hi,

Today I finished integrating moPub. My game follows a landscape orientation, so, the resolution for the ads that fit better is 32x480. I have seen iads can serve this ads but moPub doesn't. So, how do you handle this situation? If I use the 320x50 (portrait banner) it eats 1/5 of the screen. Is there any solution to this?

On the other hand is possible to have an advert that in potrait has size w=50 x h=320 print this way in a ladscape orientation? What I really want to avoid is avoid eating 1/5 of the screen with the banners. It is too much!

Thanks a lot in advance.

Has anybody used inMobi through moPub with GMS?

23 October 2012 - 12:27 PM

Hi,

Has anybody been able to use inMobi with moPub? I have read on moPub that can be used through custom events. But I have read a lot today and I'm a bit lost at the moment. Could anyone bring a bit of light on this?. Am I forced to use just what GMS supports independly the mediator support more networks?

Thanks in advance.

MoPub and Geo targeting possible on GMS?

23 October 2012 - 08:16 AM

Hi!,

I have read on some thread that GMS does not support GPS for ads providers. Does this mean it won't be of any use my setup on moPub about  targeting by Country?. I have a rule that specifies that people form USA will be served with iAds (ios here), will this information be not used and just serve by CPM?

Please some clarification on this will be welcomed.

Thanks in advance.