PabloDev's Forum Posts

  • 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

  • http://theheadoffran.blogspot.com.es/2016/10/curiosities-about-steam-sales.html

    The developer talks about offers in Steam and gives some data, also do not miss the other posts where the developer talk about fake youtubers asking Steam keys to the developers.

  • [quote:2nma78x4]I really just wanted to create a subgroup within the condition, the sub-event is just to show that is created within the condition but the group is created out.

    I just wanted to create the subgroup without the subevent created in the gif.

    So how you create a subgroup within the condition without a subevent ?.

    Well you only create a sub-group from an existing selected group.

    Otherwise you just create a group (top level).

    So it will be created at the same level as the top level event and you will have to move it later, or create a blank sub-event, select the sub-event and then create a group.

    It's a matter of hierarchy and it's logical.

    Also, I'm not much a fan of using "sub-groups" within events, not too sure this is a good way to go.

    Always prefer to use functions if you need some code you intend to reuse or "option out".

    That's the best way to go about things I think, keep groups to organizing purposes mostly, it is safer.

    Ok, I find it a little confusing but I'll have to adapt.

    Thanks for the info.

  • Hey, something strange happens when an event with these conditions is click twice on the timer.

    The frame does not match with the condition of the timer.

    R238 64bits

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