dop2000's Forum Posts

  • Did you toggle off the lowercase and uppercase events below it? Because special characters are considered as lower and uppercase also. If they are off the statement does not work for me.

    Special characters can't be lower or upper case, so it doesn't matter if you select "case sensitive" or "ignore case", and uppercase()/lowercase() expressions do nothing with them.

    All these 3 events work fine for me:

  • Maybe the "talking" animation continues to play from the previous time when talkingStatus was 1? You never reset the animation. Shouldn't you add something like "Set animation to Idle" to event #6 or #7?

    Also note, that if you have multiple pvtagt instances, event #7 will reset talkingStatus for all of them.

    And the "enemyTalking" variable is not needed, you can use Audio -> Is playing "pvagt"

  • mattshallow

    The capx you shared somehow got corrupted - there is no Files subfolder in it. So I had to manually add mmd_all_letters.txt with this content:

    a;b;c;d;e;f;$;@;#;%;&;^;*

    But after that the condition letterText text is "$" worked for me. The variable is increased by 4 and progress bar changes when I add $ to the password.

    You can actually get rid of the txt file and AJAX, just store all letters in a text variable. And no need to separate letters with ";", use mid(allLetters, loopindex,1)

  • See my previous comment, method #1:

    For each Box order by Box.x ....

    You can add an instance variable "orderNumber" and set it in this For each loop.

  • 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)