dop2000's Forum Posts

  • You can also enable unbounded scrolling in layout properties.

  • You need to add ScrollTo behavior to your camera sprite.

  • You can use Dictionary.CurrentKey and Dictionary.CurrentValue inside the "For each key" loop.

    If this doesn't help, please post a screenshot of your code.

  • Have you tried dragging and re-docking all bars in the window? Grab a bar, drag and drop it into a blue square. You can do the same with the main area, where event sheets and layouts are shown.

  • The easiest method I know is to replace line breaks with some tag or a character, for example:

    The quick brown fox^jumps over the lazy dog

    When you are loading strings into the array, or when you need to display the text on the screen, replace "^" with newline:

    Dialog Set Text to replace(RextFromArray, "^", newline)

  • Are you using Construct 2? You posted in a wrong forum.

    From my experience, Paster plugin works fine on Android.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Deleting all nwjs data didn't help.

    So I ended up changing my password, and this fixed the issue with crashing!

  • System action Set Global Variable MyVar to int(random(1, 10))

  • tarek2 Yeah, this happened after I tried running the latest beta in Desktop app. Now both stable and beta versions are crashing...

  • Please help! After I login, the editor immediately crashes (closes). nwjs process keeps running in Task Manager. This started happening today..

    I updated NWJS to latest version, tried Storage Cleanup, but it didn't help.

    How can perform a "deep clean" of NWJS cache and other saved data? Is it safe to delete everything here?

  • Set the sprite invisible by default (in the editor). When the variable=1, set it visible.

  • how do I put in a an if or else function

    "if" is just a pseudocode. Use "System Compare variable" condition. And to add "Else" step, select that condition and press X on keyboard.

    when I run it like this it just displays a 1 when I click the button

    Maybe the text is too small? Also, the formula should be int(random(1, variable1+1))

  • aliiwhiite Don't use round() with random, it produces uneven results. To get a number from 1 to 1000 use int(random(1,1001))

    So the code should be something like this:

    Variable R=1000
    
    On button pressed
    ...Set R to int(random(1, R+1))
    
    .....Compare variable R=1 : Text set text to "You lost!"
    .....Else : Text set text to "Random value=" & R
    
    
  • I don't think it's possible without some manual editing of the project files.

    Note, that on export the folder structure will be flattened - all files will be moved to the root folder. So if you need to preserve folders in exported game, you probably shouldn't import them into the project.

  • Create AsJSON string for an array and dictionary with the same number of values, and compare which string is shorter. I think the array will the shorter, but if you use short key names in the dictionary, the difference may be small.

    The shortest option would be comma-separated values.