dop2000's Forum Posts

  • LocalStorage.KeyAt(LoopIndex) returns only the name of the key. So if there are 100 keys in local storage, this loop will print all 100 names (but not their content)

    + LocalStorage: On all key names loaded
    ----+ System: Repeat LocalStorage.KeyCount times
    -----> Text: Append LocalStorage.KeyAt(LoopIndex)
    

    If you need to display 100 images from these keys, you will have to retrieve each key into BinaryData object and then into a sprite. And you need enough empty frames in the sprite for all 100 images.

    Here is a demo:

    dropbox.com/scl/fi/ip3l882ooiiwt69kpq5v2/LS_SaveLoadMultipleImages.c3p

    Click Draw+Save a few times. Then click Load.

  • I've filed a bug report, but also tagging Tom here as this is a serious issue.

  • Please read the quote from the documentation again -

    You can't directly change object's angle, position or size if you want it to interact properly with other physics objects. You also should not use behaviors like Tween or MoveTo. Use only Physics actions - set velocity, apply force, set angular velocity etc.

  • If one key is created each day, how do I call all the keys on start of layout?

    + System: On start of layout
    -> LocalStorage: Get all key names
    
    + LocalStorage: On all key names loaded
    ----+ System: Repeat LocalStorage.KeyCount times
    -----> Text: Append LocalStorage.KeyAt(LoopIndex)
    

    Would that be too many on a single mobile device?

    If it's an app, it should probably be fine. Unless you are storing huge images in each key. You can run a stress test - save 2000 keys and see if there are any problems.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Did you set its type to "Text area"?

  • You need to use raycasting feature of LOS behavior. See this official example:

    editor.construct.net

  • Looks like something has happened to many icons and other images on the website. My avatar disappeared, I had to re-upload it. And now I noticed that the icons on the Manual page are missing too.

    I wanted to upload a screenshot, but it also not working!

  • Physics is not compatible with Solid or other behaviors, see the official documentation:

  • the Greenworks/Steamworks condition "Is running on Steam Deck" doesn't work for me, but I've found a workaround:

    Perhaps a better solution would be reporting it:

    github.com/Scirra/Construct-bugs/issues

  • However, I do know that the dev for Repella Fella was able to get it working.

    Are you sure that the achievements are working in Repella Fella?

    I will try not packaging the assets, thanks!

  • Has anyone managed to get it working? I have the same issue:

    NWjs 75 + Steamworks 1.50 + GOG Steam SDK Wrapper 1.50, the game crashes on startup. This only happens when GOG app is running.

    NWjs 82 + Steamworks 1.58 + GOG Steam SDK Wrapper 1.57 (they don't have 1.58), I get this error:

  • No worries!

    You can probably get image directly from AJAX into BinaryData. But this is risky, because the image file may be too big. It's better to paste it on a canvas with fixed resolution.

  • Here is an example of saving one image to Local Storage:

    dropbox.com/s/2ejptq8tlgl57n0/DrawingCanvas_SaveLS.c3p

    If you need to load an image from file, you can load it into a sprite first, then paste on the canvas.

  • Why did you assume the same code should work? If you need to display the left part of the string, you need something like this:

    left(text, find(text,"fish")+len("fish"))

  • Object.AsJSON returns a string of text. You can store it in an array as any other text.