dop2000's Forum Posts

  • Are there line breaks or spaces between each token in the file? I had a similar issue and turned out that linebreaks are not shown in debug mode, so it was hard to find...

    Just to be sure, check if len(letterText) returns 1.

    Also try changing encoding of the text file. You can press Save As in Notepad, save with a different encoding method to a folder and then re-import the file to the project.

    If nothing helps, could you share your capx?

  • Then the screenshot that you posted should work! I rested it and it works for me.

    Could your text contains something else besides the $? Maybe some invisible character - a line break or a space. Try this condition:

    trim(letterText.Text) = "$"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Local Storage is the best option. If you post a screenshot of your code, we could tell you why it doesn't work.

  • 7UKECREAT0R

    Using "wait" for tasks like this is a bad idea.

    Imagine there are two power-ups. You pick one, run to another one, which takes you 4 seconds, pick it up. So your superspeed should recharge to 5 seconds, right? However, in 1 second that "wait" from the first power-up triggers and your speed returns to normal.

    Or another situation - player hits Menu or Pause button. How do you pause "wait"?

    So don't use wait, use Timer behavior instead.

  • mattshallow , Your code works fine for me.

    Do you need to check if the text contains "$", or if it exactly is "$"?

    If the text is something like "Price $5" and you need to know if it contains $ symbol, then use this:

    System-> Compare two values -> find(letterText.Text, "$")>=0

    • Post link icon

    Ashley,

    The meltdown/spectre patches would be a good explanation if the issues with performance were consistent. But C2 works fast after windows reboot and only slows down over time. Also, these patches are supposed to hit the performance by 30% max. A lag of 4-5 seconds after almost any mouse click feels more like 30000%

    • Post link icon

    Ashley, I couldn't have noticed it earlier because I installed C2 on this laptop only about 40 days ago

    • Post link icon

    , I'm not a big fan of formatting and reinstalling everything. And I can't do this anyway. This is a work laptop and I have some other important software on it that will be a pain to re-install and configure.

    And I don't understand how re-installing windows will help to find the cause of this problem.

    I'm 100% positive it's not just my PC, as I'm not the only one who have these issues.

    Here is the list of users who reported these or similar issues on Windows 10:

    BiffanyPFH

    humanescape

    shushpo

    chadorireborn

    BackendFreak (possibly, OS Build 15063.850)

    digitalsoapbox (Win 10 Enterprise)

    alihaider123

    The Mnk (possibly)

    UberLou

    Colludium (has had this issue for 2 years)

    Edit: updated list.

  • Nah, it all looks good to me. Couldn't write it better myself

    • Post link icon

    , thanks for the links. I've actually increased the icon cache size to 8Mb about a week ago, this didn't make any difference.

    I tried deleting Thumbnails in Disk Clean-Up, this didn't remove the lag with event dialogs.

    Tried manually deleting files from C:\Users\Stan\AppData\Local\Microsoft\Windows\Explorer folder - some files were deleted, some not. This didn't help either.

    When I start C2 for the first time after deleting Thumbnails, a few new files are created in that folder.

    But no new files are added with consecutive launches. In fact the whole folder stays at about 10Mb and its size does not increase much over time.

  • You can do this:

    fullLeterBox on Drag Start

    ...fullLeterBox is overlapping emptyLetterBox -> emptyLetterBox set hasLetter to False

    One other thing - what if when you drop the letter, it's overlapping two empty boxes?

    I suggest you add another sub-event under #11:

    emptyLetterBox pick nearest to (fullLeterBox.x, fullLeterBox.y)

    • Post link icon

    Ashley

    I think both my bug reports about Windows 10 performance are related, or have some common cause.

    This delay with event dialogs also depends on windows uptime and/or the number of times C2 was launched.

    That test where I opened/closed C2 many times for an hour - event dialogs became very slow after it too.

    How come the same Windows API that creates icons works fast after reboot and becomes extremely slow an hour later after C2 application was launched a hundred times?

    In that bat-file I don't just start Construct2.exe application, I open a test C2 project with ~90 objects.

    So here is an uneducated speculation - maybe all these icons from every C2 session are cached or indexed or something like that, and this cache/index never gets reset?

    R0J0hound

    Thanks for the tip, I disabled the patches in registry, will see if this helps.

    Update: I disabled Meltdown/Spectre updates as described here and tested again with versions r252 and r239.

    For each version I rebooted Windows and ran that bat-file for an hour, and in both cases C2 slowed down considerably.

    I didn't notice any improvement.

    • Post link icon

    Ashley

    Yes, I can. Which versions do you want me to check?

    Testing each will take hours, so please only give me a couple of key versions where you made some big changes in the editor.

    Update: I disabled Meltdown/Spectre updates as described here and tested again with versions r252 and r239.

    For each version I rebooted Windows and ran that bat-file for an hour, and in both cases C2 slowed down considerably.

    I didn't notice any improvements.

    I also noticed another funny little bug (probably completely unrelated, but who knows) - with each launch, the right panel with the Project Bar expands a bit to the left. So after about 50 launches, it fills the entire window.

    • Post link icon

    W10 home build 15063, i don't use updates

    I read someone else's comment that he too doesn't have these problems on windows build 15063.

    So looks like the older windows 10 versions are not affected.

  • Zoom in the image, you should see the line of white pixels.

    Or simply create a new Tiled Bachground 4x4px and fill it with black color.