dop2000's Forum Posts

  • irina

    "Set effect parameter" takes values from 0 to 100.

    So you need to divide RED, GREEN and BLUE you get from the canvas by 2.55:

    Sprite10 Set effect "set color" parameter 0 to RED/2.55

    Sprite10 Set effect "set color" parameter 1 to GREEN/2.55

    Sprite10 Set effect "set color" parameter 2 to BLUE/2.55

  • The sentences (e.g., ___ is a dog.) are generated randomly from an array via a function.

    By "generated" you mean "picked"?

    Do you pick a complete sentence from a random element of the array? Or do you generate the sentence from separate random words?

    It's hard to give you a solution without seeing your project.

    You can probably expand your array, adding another "column" to it that will store the name of audio file for each sentence.

    Could you share your capx file?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 7UKECREAT0R

    What are you talking about? Timer behavior is included in both C2 and C3, even in free versions.

  • Are you removing "FirstTimeStartup" item from Local Storage before every test?

    Also make sure that the "Get Item" action is only triggered once.

    I suggest you add debug output (Browser -> Log "some text") to each event and see in browser console what's going on.

  • 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) = "$"

  • 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

    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%

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