bociakrodyl's Recent Forum Activity

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

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

  • Thanks Jobel and Ashley!

    I took what Ashley suggested:

    "I think an easier way is just to add "Every footstep_speed seconds" condition."

    It is beautiful and simple and works perfectly!

    Also thanks for explaining the wait concept.

  • I wanted to make the player hear the sound of steps when:

    - he touches a particular ground

    - and when he is moving.

    I have arranged such an event, but the effect is that I can hear a lot of overlapping footsteps sounds.

    Variable "footsteps_speed" is used to adjust the interval between steps.

    I thought the system was playing sound and waiting to play sound again, if of course the conditions are met.

    I think I miss something here. I will be grateful for every hint.

  • Yes, hard-coding sucks.

    I need a simple engine that I will be able to develop,

    so thank you very much for the hints!

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