PabloDev's Recent Forum Activity

  • you can with nw.js

    https://1drv.ms/u/s!AjkoCSebIn9JizQd1ruwVtQSU-fa

    I putted them in a listbox for convenience

    OK thanks!.

    I did not know this feature in nw.js

  • Ah thats should be simple.

    Make a variable, call it "allsounds".

    Then add to each event where you play a sound other than loop.

    On play: set variable to 1.

    Else: set variable to 0.

    Put the play "loop" event all the way at the bottom of the event sheet.

    Let it check: If variable allsounds = 1

    Set volume to low.

    If variable allsounds = 0

    Set volume to high.

    Because the event sheet works from top to bottom you can do it this way.

    All sounds are checked playing and if they dont play.

    Then for each sound the "Else" event is triggered.

    So it will be set to either 1 or 0.

    Reaching the bottom of your event list then it checks if that variable is 0 or 1.

    I hope i explained it simple.

    I have doubts about this system.

    Could you make an example in this capx ?.

    Maybe this that helps me understand if you system is valid for me.

    https://dl.dropboxusercontent.com/u/60803633/testSound.capx

    How to lower the volume of sound "bucleSound" when another sound is ringing ?.

    Then, when there is no other sound reproduction, you must turn up the volume to "bucleSound".

  • You want to know which audio files are playing.. correct?

    So when adding a "play audio" event you can set a tag for that specific audio file.

    Then you can find out if that audio tag is playing using the condition: audio "tag" is playing.

    Imagine using 1 tag for all audio files.

    Than you can access all these audio files using that specific tag.

    Set their volume.

    Make stop playing.

    Setting effects etc.

    Example.

    2 audio files playing use tag "gunshot".

    1 audio file playing uses tag "bomb".

    You can check audio: is "gunshot" playing-->set playback rate to 1.2

    Etc.

    Does this answer your question?

    I understand but my problem is not that.

    My sounds are played with a different label each, the name of the label is its file name.

    File -> shotPlayer.ogg

    tag -> "shotPlayer"

    File -> enemyKilled.ogg

    tag -> "enemyKilled"

    etc...

    I have a sound played in a loop throughout the game.

    I need to know when you're playing that sound only and no more.

    For what?.

    When other sounds playing, then I must turn down the volume of the sound played in loop.

    When no sound except the sound playing loop, then I must increase its volume.

  • Hello, how I can know the names of files in folder X ?.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Taken from the manual: https://www.scirra.com/manual/109/audio

    Audio tags

    Some actions affect audio parameters such as the volume for sounds which are already playing. However there can often be many sounds playing at once in a game. In order to identify which sounds you want to affect, sounds are played with an associated tag. This is any string that identifies the sound. For example, the player's weapon sound effect could be played with the tag "PlayerWeapon" and an enemy's weapon with the tag "EnemyWeapon". Then, the tag can be used in the Set Volume action to specify which sound to set the volume for. Tags are case insensitive.

    Multiple sounds can also play at once using the same tag. In this case actions like Set Volume affect all the sounds playing with that tag.

    A tag which is an empty string ("") has a special meaning: it refers only to the last sound played with the Play action. This is convenient for playing a sound and immediately setting its volume and other parameters

    AUDIO CONDITION:

    Is tag playing

    True if any audio with a given tag is currently playing.

    I read the manual, how do you think could solve my problem with that ?.

  • Hi, is there any plugin or audio behavior that allows access to all tags of the sounds being played at that time ?.

    Suppose that X point in the game, I need to know the labels of the sounds in reproduction at that time, is there anything that allows this ?.

    I have a sound that always being played in loop mode, sometimes other sounds are also played and then several sounds are heard at once.

    Ok, I need to know when that sound is playing without any other sound more.

    I mean, i need to know when the sound is unique sound playing without all others sounds.

    So I think a plugin or a behavior that allows access to the labels of the sounds being played at that time could help this issue.

    Maybe Scirra is like Nintendo/Apple.

    Do not depend on the movements of others, they go their own way.

  • You already have the replace Object/replace action option when you right-click a condition or an action.

    That's the best way to replace an event for a similar type of object.

    Otherwise, it can't happen with the way the events system work (auto-completion, code logic check, etc...)

    Sure, I know that option but only serves to change a single event. My proposal was to change all events that are equal to their goal.

  • Hello, is it possible to add the option "replace event" ?.

    Then you write the event to replace and, in other section, write or create the new event.

    **Ok, in some cases it would not be possible to write the event to replace but could be indicated using the creation of an event

  • What does this mean ?, now there is no agreement between Scirra and XDK ?.

  • Hello, I do not understand the operation of this plugin, I do not know what I can do with it, does anyone have any example ?.

  • Hello, I want to make a suggestion, the change in the opacity of a tilemap not is reflected in the main window.

    Sprites if they view the change in opacity but tilemaps not.

    I suggest that tilemap objects behave like sprites objects regarding opacity.

    https://dl.dropboxusercontent.com/u/60803633/testTilemapOpacity.capx

PabloDev's avatar

PabloDev

Member since 2 Nov, 2015

None one is following PabloDev yet!

Trophy Case

  • 9-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Email Verified

Progress

12/44
How to earn trophies