Arne's Forum Posts

  • I need to get the absolute(body) position for a Sprite.

    The adjustment I did was:

    aPosX = aPosX + jQuery(myRuntime.canvas).offset().left;
    aPosY = aPosY + jQuery(myRuntime.canvas).offset().top;[/code:39lz7u5c]
    
    But it is still off a bit to the upper left. What am I missing here?
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Remmy112 The "Show full screen Ad" is an action that you can put e.g. when your level is about to end. The user then look at the ad and dismiss it. To know when to continue you then put an event "On dismiss full screen Ad" and in that event you can change layout or show an end game scene.

  • Raiper341 Just checked ours and we got 88 request and 59 views with 100% fill for a period so yours is abit low. No idea what could be wrong but one thing might be like I said to Emu, check for "On Create full screen Ad successful" so that the ad is successfully created before doing a "Show".

  • Hi,

    Forgot to introduce myself but here I am. A developer and co-founder at Frosty Elk. Most of my time I spend designing our own plugins, e.g. Admob published in the forum.

    Happy gaming

    Arne

  • Emu When you say "is not working" what part do you refer to, "Is Ready", "Create" or "Show"? You should only use one of the Cordova plugins at a time. If you add both plugins the Crosswalk build will not work.

  • Thanks JohnnySheffield, I could use most of that behavior. Now I have Sprite up and download in my plugin

  • I need to convert a Sprite to a base64 encoded string, are there any prebuilt functions I can use? Second best solution is to have the Sprite as a byte Array.

  • Allardje This is one of several plugins that I have developed specifically for our games and so far I have only put in functions that we need in the game.

    But maybe we need banner ads in the future and then I will update the plugin

  • Emu You can use the events "On Create full screen Ad successful" and "On Create full screen Ad failed" to make sure you actually managed to create the ad.

    When you know the ad is created successfully you do action "Show full screen Ad" and once again check with events "On show full screen Ad successful" and "On show full screen Ad failed" to make sure it was shown successfully.

    Wait for the user to dismiss the ad in event "On dismiss full screen Ad" then goto the next layout.

    If nothing works there is also a possibility that the Cordova plugin failed to load. You can add a check for that with event "Is ready" before doing a "Create.."

  • pirx You need to wait for the ad to be created, it takes some time so you can not put "show" in the layout start.

    Create a "On Create full screen Ad successful" event and put the "Show full screen Ad" action there, that is the earliest possible time to active the ad.

  • While waiting for official support, you can try this plugin for Admob Interstitial Ads on Crosswalk.

  • This plugin has been discontinued, please see official plugin.

  • I have seen this as well. The FB load is done very fast and the trigger comes before the layout is running. As a workaround I set up a tick to wait for the layout to start.

    window.fbAsyncInit = function() {
    ....
    // Delay OnReady event so layout is loaded before trying to do events
    fbRuntime.tickMe(fbInst);
    };
    
    instanceProto.tick = function () {
    	// Just do this once after load
    	if (fbRuntime.running_layout) {
    		fbRuntime.untickMe(fbInst);
    		fbReady = true;
    		fbRuntime.trigger(cr.plugins_.FacebookFE.prototype.cnds.OnReady, fbInst);
    	}		
    };
    
    [/code:2glnduyl]