Mayfly's Forum Posts

  • Problem description

    Changing an image from a URL and keeping the existing image size does not work when on a mobile device, despite working fine on a PC.

    Example CAPX:

    https://1drv.ms/u/s!Am9ctVZP5a3jielBeF29gFEi1iM0Rw

    Steps to reproduce

    1. Create a file chooser object / sprite image.

    2. Allow the user to pick and image and then on 'file chooser change' update the image from the URL data, keeping the existing image size.

    3. The sprite updates with the new image, keeping the size restricted to stay in the current layout (On the example)

    Observed result

    On a PC this works fine

    On a mobile device the image opens as if the image size is the same / goes outside of the original image size

    Expected result

    Image should have resized to match the existing image (And keep within the layout boundary)

    System details

    Construct 2 R265 on Windows 10

  • Anyone know any solutions?

  • Hi nuganx

    I have made something similar where I can select a photo and have it saved.

    Subscribe to Construct videos now

    Although I am using NWjs and the paster object to make it easier.

    The idea is that I have a variable called 'savedphoto' and when the user loads in the image, the variable takes the image data. It then loads back this variable when a save is loaded as the variable is saved.

    Let me know if there are limitations on using either NWjs and Paster object and I can put a little example together if you need?

  • Bump to see if someone can reply / point me in the right direction. I've asked a couple of times and it seems this no longer works in C2.

    My problem is that I cannot upgrade to C3 to finish my projects as I use plugins on them which are not supported on C3. A real problem which is keeping me using the C2 setup....

    Ashley is there a solution?

  • I'm interested in this as I've been trying to get the same answer for a few months.

    I have an endless style game in C2 which is pretty much ready to publish if I can add google play high score / services.

    update 04/01/2018

    baksjorj0coijatin1726

    I've seen we've all been posting for this over the last 6 months.

    Please hit me up on discord or skype as I managed to get a couple of ways working.

    I've managed to get it logged in and leader boards / achievements showing.

    I am using C2 and building with Cordova CLI

    (I am on discord as Mayfly and skype as mayfly118)

  • Hi,

    I have a couple of applications I've built that allow a nice GUI, which exports text box fields and variable data into both excel and word format. I currently use the AJAX plugin to load in either a word or excel .xml file, carry out a find and replace to update the information contained. Then use either the browser plugin (preferred) or NW.js to download the updated file.

    Limitations on this method are that I am unable to input pictures into the created documents. I created a work around for the excel outputs, put if its possible I'd like a plugin so that i can develop further and have a more efficient solution.

    There are a couple of directions I've been pointed at, but they are outside of my comfort zone to learn / implement.

    sheetjs.com

    stuk.github.io/jszip

    Anyone that is interested give me a PM / reply back and we can look at in more details.

    Cheers,

  • Hi Ashley

    Thanks for the reply. I have read the cross-domain, but i am guessing this is done website end?

    I have a project I've made which uses a web-service to get data to allow converting from longitude and latitude to British national grid co-ordinates:

    If I use NW.js then it works fine. It I use HTML it fails (blocked)

    1drv.ms/u/s!Am9ctVZP5a3jidN6kn98T45xUAIOig

    As I do not have access to their website I am guessing I am stuck progressing this?

    Thanks,

  • Just a bump to see if anyone knows a way this can be done?

    Ashley - Do you know if this is possible?

  • I still get the same problem if I build to html and upload. If its in nwjs it pulls the data correct. If I try in chrome it fails.

  • I've made an app which can convert co-ordinates using a web-service.

    it works fine in NW.js - however in chrome (or any PC browser / phone browser) it fails.

    I've read this is to do with website security, but I wondered if there are any work arounds?

    I am trying to use a pull request that downloads a string from a website and then I've setup tokenat to break this down.

  • paradine

    Does the tank multiplayer template sync animations etc?

  • Does anyone know if it is possible to retrieve image data from the users clipboard?

    I'd like to be able to click a sprite (or canvas object) and paste an image into it if the user has a picture in the clipboard. (ie copied from paint / word)

  • Recently when I use the forum search, the results all come back without spaces between the words.

    If you then click a thread, the same problem happens. All the text in the posts have no spaces between the works making it very difficult to read.

  • I have the old PDF reader, but none of the examples work. Does anyone have any examples still?

    I am trying to allow PDF's to be viewed in the window, but keep control (So not loading a pdf in the browser object as this navigates away directly to the file)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Do you have any screenshots to help explain your problem?

    I've got a project which can load in words from a text file. I also know its possible to split a sentence and pick words from that. I am just not 100% sure what you are trying to do at?