prakharprakhar89's Forum Posts

  • I am using admob Construct 2 plugin , it work on android , but its not working on windows phone ?

    How to resolve it ?

  • Ashley

    Hi,

    I am unable to monetize my game because here is Java script for ads

    I have java script here ==========

    <script language="javascript" type="text/javascript">

    var _sa = _sa || [];

    _sa.push(["initialize","My game Ads ID]);

    _sa.push(['displayAd']);

    (function () {

    var sa = document.createElement('script');

    sa.type = 'text/javascript';

    sa.async = true;

    sa.src = '//ads.appnext.com/ad/source.js';

    var s = document.getElementsByTagName('script')[0];

    s.parentNode.insertBefore(sa, s);

    })();

    </script>

    I am doing > On start Of layout > Browser > Execute Java Script ( )

    and in that method I am passing above mentioned Java Script .

    But I think my script not execution, Do not know why ?

  • Hi,

    I have java script here ==========

    "<script language=""javascript"" type=""text/javascript"">

    var _sa = _sa || [];

    _sa.push([""initialize"","" ""]);

    _sa.push(['displayAd']);

    (function () {

    var sa = document.createElement('script');

    sa.type = 'text/javascript';

    sa.async = true;

    sa.src = '//ads.appnext.com/ad/source.js';

    var s = document.getElementsByTagName('script')[0];

    s.parentNode.insertBefore(sa, s);

    })();

    </script>"

    I am doing > On start Of layout > Browser > Execute Java Script ( )

    and in that method I am passing above mentioned Java Script .

    But I think my script not execution, Do not know why ?

  • I have Java Script like below:

    <script language="javascript" type="text/javascript">

    var _sa = _sa || [];

    _sa.push(["initialize","","","","",""]);

    _sa.push(['displayAd']);

    (function () {

    var sa = document.createElement('script');

    sa.type = 'text/javascript';

    sa.async = true;

    sa.src = '//ads.appnext.com/ad/source.js';

    var s = document.getElementsByTagName('script')[0];

    s.parentNode.insertBefore(sa, s);

    })();

    </script>

    when I am using this plugin https://www.scirra.com/forum/viewtopic.php?t=64104&start=0

    to call this script, its giving me syntax error .

    I do not have much idea about Java Script .

    Why its giving me syntax error ?

  • I have Java Script like below:

    <script language="javascript" type="text/javascript">

    var _sa = _sa || [];

    _sa.push(["initialize","","","","",""]);

    _sa.push(['displayAd']);

    (function () {

    var sa = document.createElement('script');

    sa.type = 'text/javascript';

    sa.async = true;

    sa.src = '//ads.appnext.com/ad/source.js';

    var s = document.getElementsByTagName('script')[0];

    s.parentNode.insertBefore(sa, s);

    })();

    </script>

    when I am using this plugin https://www.scirra.com/forum/viewtopic.php?t=64104&start=0

    to call this script, its giving me syntax error .

    I do not have much idea about Java Script .

    Why its giving me syntax error ?

  • I want to switch the layout on back press on android and windows phone .

    How can I get back press key so that i could fire the events.

  • I added c2 plugin and set up ads position at Bottom Center, but when I go through this link

    https://www.scirra.com/manual/184/admob and set up all things, the final apk when i exported from

    intel xdk, Ads are coming at top center , not bottom center ?

    What problem should be ?

  • Nimtrix How to check for inverted conditions ?

  • Okkk..... Thank you

  • but in the emulator device, it showing that bar, on some devices, its not showing , messed up..

  • I want to remove this scroll bar when build the final apk .

    How to remove it ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Guys .. again I am getting this scroll bar ?

    How to remove that one ??

  • thank you and VIKINGS, done with intel xdk settings, VIKINGS as u said, might be buggy i will try that one also.

  • and where is built setting ?

  • I could not get it, what is build version ?