bociakrodyl's Forum Posts

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

  • Thanks for helpful suggestions!

    The new code works because for every digit from 0 to 3 I give only one direction to check. Then I change the number in the global variable and test the next direction.

  • I want to fade volume my background music while speaking.

    I have two functions for duck and unduck music.

    First function is pasted right before speaking.

    Second function is pasted right after speaking.

    Unfortunatelly both functions start at the same time.

    How can I detect if speaking is over?

    Or maybe there is a way to detect whether speech synthesis is running?

  • I do not understand the rules of performing events, but I did something like that and it works properly:

    - I added a variable which stores the value 0 - 3 (each digit defines the direction)

    - I check which number is in the variable and start testing particular direction

    - at the end of the test I change the value of the variable, thanks to which the next direction is started

  • I suppose I do not understand something, that's why I am asking for a hint.

    In the Construct documentation I found information that events are triggered from top to bottom.

    The code in the picture at a glance:

    1. The probe gets speed and turns left.

    2. When the probe does not find a corridor and room, than probe is to set itself to the player's position (this is the starting position).

    3. The probe receives the forward direction in which it moves further.

    The effect I get is that I see the probe go only forward. I do not see the movement to the left.

    It looks like the code was executed at the same time, not sequentially.

    Do I need to add something to the code to make it work the way I expect it to?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • During the uploading of sounds I see the 96 kbps bitrate set.

    Unfortunately, I can not change this value.

    This applies to both Sounds and Music folders.

    Is there an option available somewhere?

  • Thanks Kyatric!

    Small steps forward :)

    I need accurate insight in the directions of the player and probe.

    Since the bullet behavior is causing the problem, I decided to add a function that will allow me to have an excellent orientation in the directions.

    In the picture I have selected the condition checking the value of the global variable called "player_direction".

    And it does not work!

    If I add the second parameter to the function and pass the string "west" then it will work.

    But I need a direct checking of the global variable.

    How can I do in function?

    edit:

    I can't add the picture, so I send it to Google Drive:

    drive.google.com/open

    edit2:

    It works!

    I was combining further and made the big discovery!

    The value of my global variable was written in quotes and it should not be.

    I thought that by defining a global variable as a string I should write its default value in quotes.

    And that was a misunderstanding, uffff :-)

  • Maybe a working code snippet will help?

    I left only this strange behavior.

    For some reason the probe later turns again,

    although the rotation is only once at the beginning.

    Can someone give me a hint?

    drive.google.com/open

  • Thanks a lot Plinkie!

    Now it works almost good :-)

    The UIDs of objects are stored in the array,

    but the probe turns 90 degrees when starts.

    It has something to do with the first action, where I rotate the probe 90 degrees.

    But it is only called once after using the SPACE key.

  • Hi! I don't understand the behavior of my function.

    This is a map:

    The player (purple) automatically stops in the middle of the green field.

    Then, the probe (black) will automatically start exploring the area in 4 directions. Its task is to record in which direction the player can make another move.

    Here's the code:

    I want the probe to start after the player stops. The probe will write to the array objects from the 4 studied directions. On the map above you can see the moment when the probe moved from the player in the first direction.

    Currently, this code works like that:

    the probe will write to the array only the first object, the green one from which it starts.

    And normally, when I turn off the function and I turn on the code above, it will work properly:

    it writes to the array all the objects encountered by the probe. But unfortunately it does it all the time while moving on the map with the player.

    So I need a function that will run the probe only at a specific point and time of the map.

    Do I have to send something to the function?

    I suspect that this is another missing element in my Construct learning. Oh, I would really like some advanced course, maybe you know one?