bociakrodyl's Recent Forum Activity

  • I guess I had to be blind to not notice it!

    But the fact is that I'm learning this software.

    Thanks so much for the hint!

    I just created my function and muting of music during speech works just beautiful :-)

  • Oh, that's probably small thing that bothers only us ;-D

  • Should I report it somewhere?

    Is there any website reporting bugs?

  • Plinkie!

    That's exactly what it was about:

    The fix is replace : 'array.at(param)' in the first box with 'param'.

    I was depressed because I saw only two solutions:

    - I'm stupid

    - or Construct 3 was stupidly written

    Fortunately, you pulled me out of it!

    I was just overthinking :-D :-D :-D

    Thanks a lot!

    Sizcoz - thanks for your suggest, but the solution was mega simple, as Plinkie wrote before.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you so much for your patience! :-)

    I have read the entire thread 3 times

    and I broke down :-|

    I thought if I wrote in Construct:

    Value at arr_potential_directions.At(arrayPosition) = 1

    I will get something similar to the function in JS:

    var arrPotentialDirections = [1, 0, 1, 1];
    
    function speakOneDirection(arrayPosition) {
    	if (arrPotentialDirections[arrayPosition] === 1) {
    		console.log("speak");
    	} else {
    		console.log("sorry, I can't speak about it...");
    	}
    }
    
    speakOneDirection(0);
    

    Does it not work that way?

    How can I get something like this?

  • Thanks for the answer! But I still do not understand.

    I'm sorry for tormenting with strange questions, but if I do not understand it, I will not be able to use array queries.

    I call the function by passing 0 in the parameter.

    This means that this condition:

    Value at arr_potential_directions.At(arrayPosition) = 1

    after inserting the value it will look like this:

    Value at arr_potential_directions.At(0) = 1

    and it does not work,

    it does not matter if I type arrayPosition or 0 in brackets.

    But if I save the condition in this way:

    Value at arr_potential_directions.At(1) = 1

    the speech synthesis will be launched.

    But my array looks like this:

    position / value:

    0 - 1

    1 - 0

    2 - 1

    3 - 1

    The code:

    Value at arr_potential_directions.At(0) = 1

    I understand:

    if the array "arr_potential_directions" at position 0 is the value 1 then run ...

    Am I thinking incorrectly?

  • It seems that I have not understood the laying of conditions from Construct 3 blocks yet. I thought it was something like JavaScript, but in Construct 3 things are incomprehensible to me.

    Therefore, I am asking for an explanation of what is wrong in my thinking.

    I have this code:

    The speakOneDirection function is running.

    One parameter is passed with the value 0, i.e. the function should start speech synthesis.

    It should because the array "arr_potential_directions" on position 0 is written as 1:

    Meanwhile, the function works the other way around.

    The function does not start speech synthesis. The function will only work only if I write in the condition:

    Value at arr_potential_directions.At(arrayPosition) = 0

    And yet at position 0 in the array is saved 1!

    These are some miracles that even the oldest inhabitants of my village have not seen ;-)

    Does anyone understand this? :-D

  • I found!

    You can change the bitrate, but the dropdown list has an error because you have to hit the line above the list.

    And the line is 1 pixel thick!

    This line begins at the beginning of the dropdown list. I marked it on red.

  • I launched r153 beta.

    In addition, I made the test: I launched the stable version as an external application, and the beta version directly in the browser.

    And still the same :(

  • Thanks a lot WackyToaster!

    And I'm sorry, but I probably did not say enough.

    I meant SpeechSynthesis.

    By the way, your patent with analyser would probably work, clever!

    For me it would not work, because you hear a lot of sounds:

    - background music

    - sometimes footsteps

    - additional sounds sometimes

    - speech synthesis every now and then

  • Yes, I see it but this is not clickable.

    I upload WAV files.

    Can you change this value?

    Is this a bug in the Construct 3?

    I have r148.

  • I dug the Construct like a wild pig and I didn't find a solution of my problem ;-)

    It seems that there is no such possibility.

    Is the only solution using a plugin with an external library?

    construct.net/en/make-games/addons/1/javascript/documentation

    github.com/sdkcarlos/artyom.js

    I tested Artyom some time ago.

    There is the possibility of defining the functions at the start and at the end of the speech synthesis.

    It would be great to be able to detect although there is no activity in speech synthesis in Construct 3. Then you could arrange the condition to start the task after you finish speaking.

bociakrodyl's avatar

bociakrodyl

Member since 13 Feb, 2016

None one is following bociakrodyl yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies