kentoy's Forum Posts

  • On Chrome it's under history > clear browsing data > cached images and files. Other browsers have a similar kind of thing.

    Sorry, but I want to clear cache and cookie in game, not make the player do that. I want some thing like a behavious of browser object or a plugin.

  • How do I clear browser cache and cookie? I want to clear my game's cache and cookie. To make sure that all the images and data load using load image from url could be fresh.

  • Hi,

    I put my game on the server, and make my url link to the game. For example: mygame.com

    And then I want to replace the game to the lastest version.

    But after I replaced the new version, I opened my browser and go to mygame.com, I found the browser still load the older version from cache.

    Is there any way to make the game updated without change the url? Because some player will save the url, and we can not change it anymore.

    Thank you!

    Tagged:

  • I just tried it on my old iPhone (iOS 12.0.1) and it worked fine.

    Yes me too, it works good on my iPhone6S, iOS 13

  • It can be. But then your game will simply not start, so you don't have to worry about this :)

    Aha, so it mean if the JS is blocked by the browser, the whole game made by Construct2 can not work on it?

  • > Text variable base64text
    
    Set base64text to Browser.ExecJS("btoa('some text to encode')")
    

    Do you think the JS will be blocked on some browser? Like Safari on iOS?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Text variable base64text
    
    Set base64text to Browser.ExecJS("btoa('some text to encode')")
    

    Great! Thank you buddy!

  • With the Browser object and the javascript btoa() function:

    base64encode.capx (r140)

    <img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/base64encode_1.PNG" border="0">

    <img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/base64encode_2.PNG" border="0">

    I'm pretty sure there's a 3rd party plugin that does it as well.

    Hi would you upload the solution again? the dropbox link is not working anymore.

  • Up please, i need it :/

    P.S: Please don't tell me to use Ajax GET/POST to encode my string using PHP.

    I very need to encode directly in Construct 2.

    Hi would you upload the solution again? the dropbox link is not working anymore.

  • It looks like Safari does not provide the information. According to this it's unlimited in desktop Safari.

    Thank you! I'm checking the link!

  • Load Construct 3 and check its About dialog - it tells you the quota available to web pages.

    Hi,

    On Mac OSX Safari 12.0 (14606.1.36.1.9)

    I got this information:

    Local storage

    Storage quota (approx): (status unavailable)

    Storage usage (approx): (status unavailable)

    Persistant storage: (status unavailable)

    Is it possible for me to get the Local storage information on Mac?

  • Load Construct 3 and check its About dialog - it tells you the quota available to web pages.

    thank you!

  • Hi,

    I would like to save some image data into the Local storage, and load the image data from Local Storage the next when the game start. It is really fast to load the data from Local storage. But I want to know the current local storage quotas and usage on the current browser. So I could make sure that do not reach the max limit.

    Tagged:

  • I see what you mean but I’ve stopped working on plugins.

    You should be able to just use paster to do it. Use the draw texture with uv action and just set the uv’s to be the subimage.

    For example:

    U = xpixel / imagewidth

    It may fail if construct packs that image in the same texture as other frames on export.

    thank you for your support! I will try. Yes, paster is a good choice.

  • Hi, I love this plugin. But I noticed that this plugin can not work with paster. I want to use paster to draw this sprite. Is it possible for you to add on?

    construct.net/en/forum/extending-construct-2/addons-29/plugin-paster-66240

    I would like to use paster's draw texture with from this sprite sheet's sub image.

    thank you!

    R0J0hound