grigrizljac's Recent Forum Activity

  • Topic titles are often too long to be displayed, so they are truncated with ellipsis. IIRC, the old forum showed the whole title in a tooltip when you moved your mouse over a truncated title. It would be useful if this new forum included that as well.

  • To save the dictionary data, you can use

    LocalStorage | Set key to Dictionary.AsJSON

    To load data from LocalStorage to Dictionary, use

    Dictionary | Load (from the key you had previously saved)

  • hi grigrizljac i download my apks from googleDrive app usually, remember to check your mobile device security option to enable third party apps installation too

    I see I was unclear in my post. I want to download files from inside my app (for example, to download canvas snapshots).

  • I searched 'Closed Bugs' and found this post from Ashley:

    [quote:3lxk6xm1]

    ...all references are in lowercase to work on case sensitive servers.

    I reckon this is probably still the case, so not a bug, really.

    I think that C2 should notify the user on import that it will be renamed (and rename it instantly), otherwise the user may wonder why something doesn't work when exported, but it did work before exporting.

    If you take a look at the exported "data.js" file, you'll still find the uppercase reference (in this case "MySuperStylesheet.css"), the way it was written in the events.

  • Hey there,

    I've been trying to figure this out for quite some time now, yet I haven't found a solution.

    How can I download files in an Android app? If I use "Browser: Invoke download", nothing happens. Is there any other way? Do I have to include any special plugins when building?

    I use PhoneGap to build the apk.

    An example usage of this would be to download CanvasSnapshot from the app. So the app would download the snapshot (save it to the device).

    Thank you in forward.

    [edited for clarification]

  • Problem Description

    Construct 2 renames all project files to lowercase on export. Referring to them by name (not by Request project file), such as when loading web fonts therefore doesn't work.

    Attach a Capx

    http://www.filedropper.com/exportrenamelowercase

    Description of Capx

    Loads a .css project file by name, the file uses uppercase letters. It works as intended during preview, but breaks after export, because the code is still referring to it as "MySuperStylesheet.css" while it was renamed to "mysuperstylesheet.css" during export.

    Note: some servers may be configured to be case-insensitive. However, Android Cordova build is not one of them.

    Steps to Reproduce Bug

    • Open the .capx attached.
    • Run a preview. Observe the style of the button.
    • Export the project.
    • Run the exported project. Observe missing style of the button.

    Observed Result

    Construct 2 renames the project file to lowercase on export. Therefore, the requested file is not found. The style falls back to no special styling.

    Expected Result

    Construct 2 should not rename files on export OR should rename them on import and notify the user about the change.

    Affected Browsers

    • Editor problem.

    Operating System and Service Pack

    Windows 10, Windows 7

    Construct 2 Version ID

    r253, r244

  • Button | On clicked -> System.Wait(x); your action[/code:1gjsqur4]
  • You can use System "choose" expression.

    System | Every 1 second -> System.CreateObject (or Sprite.Spawn or whatever), for X enter: choose(60, 90, 100)[/code:n1qbusn2]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How do you want the content to be resized?

  • That doesnt work

    Ah, I forgot Local Storage is asynchronous. The "Browser | Refresh" should be moved to a new event "Local Storage | On storage cleared".

  • I would do it like this:

    Button | On clicked -> LocalStorage | Clear storage; Browser | Refresh[/code:t7nfticj]
  • I usually save everything to one dictionary (to save an array to dictionary, I just use Array.AsJSON and put it into the dictionary).

    Then I save that Dictionary.AsJSON to the localstorage. When loading, I do the opposite (load the dictionary from JSON (from local storage) and so on). This also allows me to simply do some encryption to reduce hacking/cheating attempts.

grigrizljac's avatar

grigrizljac

Member since 25 Jul, 2013

None one is following grigrizljac yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies