MaujDeveloper's Forum Posts

  • I don't want to use "Load image from URL" because there will be a visible delay, which is not good user experience per say. My code is embedded into android app. So I make http connection (native android) and download the rest of the file before user reaches level 3.

  • To download faster, I replace big pngs with small dummy Image (100 byte png) for game level 3 onwards. Then at run time before user reaches level 2 I download actual images and replaces them with dummy ones. Ideally this should work, but actual images are not loaded on the screen. I guess construct 2 loads all the images beforehand in the cache. So How do I clear these cache once actual image is downloaded?

    I tried calling following javascript methods just before level 3 loads, but it didn't worked for me.

    window.parent.caches.delete("call")

    window.location.reload(true)

  • I had the same suspect ASHLEY. But then why only on ver 4.4. Thanks anyway.

  • My loader style is "progress bar and logo". I run my game through android WebView component in my app. Although very rare but sometimes it gets stuck on progress bar itself. Also colour of the progress bar is red when it strucks and blue when it doesn't. So my question is when construct 2 subsystem shows red colour and when it shows blue colour? How I can debug this and fix?

    Note: I have observed this issue on motorola device. Also It mostly happens when I clear data of my app by visiting android settings and then open the app.

  • It's the browase game. I'm running it using android WebBrowser component in my android App.

  • I tried both the suggestions by NN81 & the_Shit_hawk, But nothing worked for me..

  • Also, I'm using android's webView for playing this worksheet using index.html file(not the cordova plugin). Kindly help.

  • It is already in sound folder.

  • I'm not able to play any sound on StartOfLayout event on android version 4.4.*. It works fine on other android versions. What could be the possible reason and how to solve this?

    I have heard that browser does not allow sound play until user taps on the screen at least once. Is that the reason? Then why its working fine on other versions of android OS?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I tried with floodfill canvas action of Canvas plugin which is working fine on the same device.

  • made it public....

    I understand that this is a device specific bug, But how many devices would be affected? If the percentage is less than 0.5% then its Ok. Otherwise I need to use different coloured png and replace it with actual one to get the same effect.

  • Problem Description

    "Replace Colour" effect on sprite not working on Samsung Galaxy J2

    Attach a Capx

    (How to attach capx here?)

    Description of Capx

    On tap of voice icon at top right corner its colour changes to yellow on all android devices except Samsung Galaxy J2.

    Steps to Reproduce Bug

    • export the given project to android
    • open it in Samsung Galaxy J2
    • click Voice icon at top right corner.

    Observed Result

    The color of Voice Icon changes to yellow on all android devices except Samsung Galaxy J2.

    Expected Result

    Voice Icon colour should Also change on Samsung Galaxy J2.

    Affected Browsers

    • Chrome: (YES)

    Operating System and Service Pack

    Developed on Windows 7 service pack 1

    Construct 2 Version ID

    Release 244 (64-bit)

  • yup....I'm calling that function much later.

  • Using function plugin I created a function jstest() in constuct 2. Now I want to call this function from android code(the game is embedded in android webView). I tried various combinations as follows but nothing worked.

    webView.evaluateJavascript("c2_callFunction(\"jstest\", []);", null);

    webView.evaluateJavascript("c2_callFunction(\"jstest\", [])", null);

    webView.evaluateJavascript("c2_callFunction('jstest', []);", null);

    webView.evaluateJavascript("c2_callFunction('jstest', [])", null);

    It seems more of java question rather than C2 but still can any one help me?