Egyptoon's Forum Posts

  • After working for several days on finding a proper way to export games from Constrict 2 for android I found that the average fps is 15 !

    my trials included the following:-

    * Reading Performance Tips for Mobile Games on Scirra website.

    * Exporting for Android and building in intel XDK (crosswalk android) beta and stable.

    * Exporting for CocoonJS (slight fps improvement but still below average).

    * Debugging on my mobile phone (Samsung s3 mini) directly on Chrome browser.

    * Exporting some of construct 2 included examples! even simple examples have a very low fps on mobile.

    At the end I can't find any way to improve game performance on mobile phones and it seems that the issue is not related directly to the used effects, assets, physics, etc. ,even with no effects at all or no physics the fps is always terrible !

    Construct 2 is an AWESOME software, the performance on desktop is really amazing with constant 60 fps

    my problem is with exporting for mobile phones so please help me.

    Thanks

  • I've the same problem and waiting for a reply

  • Hello

    how can I show Interstitial Admob (full screen ad for mobile phones) at the "end" of the game (on game exit) ?

    i can only show it at the start

    another question : i can't show both Interstitial and banner ad on the same application! how can i show both (each one alone for different pages) ?

    thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • when i try to put my website in iframe the web site opens full screen! not within the i frame, as if it goes into the website home page and the back button in firefox browser is gray! no back to the application ! can you help me please solving this problem? your plugin is really awesome and i need to use it , thanks

  • it worked! thanks alot, i just put the file name with the extension "v1.mp4" (file name only doesn't work) as the source after importing it as a project file and it works.

    thanks alot for your great help

  • thanks for your reply, can you please tell me the steps in details ? how can i import the mp4 file and how to input its "source" ? is that a web address?

    thanks for help

  • Problem Description

    when trying to play a video using the included "video" plugin an error occure :-

    Javascript error!

    SecurityError: The operation is insecure.

    localhost/glwrap.js, line 1631 (col 0)

    This is likely a bug in Construct 2 or a third party plugin or behavior - please report it to the developer. Subsequent errors will be logged to the console.

    Attach a Capx

    uploaded

    Description of Capx

    just play a video from mp4 source online

    Steps to Reproduce Bug

      just a simple code to play mp4 from online source uploaded to my domain host.

    Observed Result

    javascript error and only the audio is playing with no video

    Expected Result

    video plays normally

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (unknown)

    Operating System and Service Pack

    win7 64bit sp1 up to date

    Construct 2 Version ID

    r173

  • thanks alot for your reply, i'm going to report this bug now.

  • Frankly i don't know if it's a bug or not, but i can't play mp4 files correctly using "video" plugin

    only sound plays with no video and this is the error message :-

    ------------------------

    Javascript error!

    SecurityError: The operation is insecure.

    http://localhost:50000/glwrap.js, line 1631 (col 0)

    This is likely a bug in Construct 2 or a third party plugin or behavior - please report it to the developer. Subsequent errors will be logged to the console

    ------------------------

    on both Firefox and chrome web browsers

    please help me solving this issue

    thanks

  • PERFECT! "lerp" is amazing,

    thanks alot

  • URLS removed, any way here is the code

    function gameLoop(){

    var xDistance = mouseX - ship.x;

    var yDistance = mouseY - ship.y;

    var distance = Math.sqrt(xDistance * xDistance + yDistance * yDistance);

    if (distance > 1) {

    ship.x += xDistance * easingAmount;

    ship.y += yDistance * easingAmount;

    }

    }

  • Hello everyone

    How do I implement this code shown in this example into Construct 2 ?

    I tried to use event "every tick move sprite at angle (sprite.x,sprite.y,mouse.x,mouse.y) a distance of 300*dt" and when the sprite reaches the mouse position it vibrates, i need to create the same smooth movement with easing reach as shown in the example.

    Thanks.

    function gameLoop(){

    var xDistance = mouseX - ship.x;

    var yDistance = mouseY - ship.y;

    var distance = Math.sqrt(xDistance * xDistance + yDistance * yDistance);

    if (distance > 1) {

    ship.x += xDistance * easingAmount;

    ship.y += yDistance * easingAmount;

    }

    }