Why can't I insert the 2nd tag to the audio?

0 favourites
  • 15 posts
From the Asset Store
Node Downloader is a plugin for download file for Construct 3 and construct 2 game engine
  • It says that you can make 2 tags separated by spaces

    It doesn't work

    MULTI is enabled in the audio properties

    Is this a bug?

    maybe not a space should be and something else?

    The tags must be different-they are for different purposes!

    Moreover, if you do it like this, it works. "123""456"

    But if there is a str function instead of a tag the compiler no longer accepts it(and without a space-which contradicts the context hint that it is needed)

    This is clearly a bug

  • it needs to be one continous string with the spaces separating the tags, i.e. str(Midi.NoteNumber - 23) & " audio"

  • you have to think about what the expression will look like after it has been evaluated.

  • it needs to be one continous string with the spaces separating the tags, i.e. str(Midi.NoteNumber - 23) & " audio"

    Thank you but;;

    In this case, it will be a SINGLE combined tag

    Because the & - operator combines two arguments into one

    I need exactly TWO separate tags(((

  • If you want to specify multiple tags, you still use a single string, but the tags are separated by spaces, e.g. "foo bar". You can use an expression to generate such a string, but it must be a valid expression. The expression str(Midi.NoteNumber - 23) & " audio" will do this as it will return something like "50 audio" - note the space before " audio". Using a number is an odd kind of tag though, I'd suggest something like "note" & str(Midi.NoteNumber - 23) & " audio", which will produce a tag string like "note50 audio", i.e. two tags "note50" and "audio".

  • If you want to specify multiple tags, you still use a single string, but the tags are separated by spaces, e.g. "foo bar". You can use an expression to generate such a string, but it must be a valid expression. The expression str(Midi.NoteNumber - 23) & " audio" will do this as it will return something like "50 audio" - note the space before " audio". Using a number is an odd kind of tag though, I'd suggest something like "note" & str(Midi.NoteNumber - 23) & " audio", which will produce a tag string like "note50 audio", i.e. two tags "note50" and "audio".

    Dear friend,

    You're wrong(

    letter. "& " joins strings

    And it turns out ONE total tag-and I need TWO different and separate ones

  • If you want to specify multiple tags, you still use a single string, but the tags are separated by spaces, e.g. "foo bar". You can use an expression to generate such a string, but it must be a valid expression. The expression str(Midi.NoteNumber - 23) & " audio" will do this as it will return something like "50 audio" - note the space before " audio". Using a number is an odd kind of tag though, I'd suggest something like "note" & str(Midi.NoteNumber - 23) & " audio", which will produce a tag string like "note50 audio", i.e. two tags "note50" and "audio".

    I don't need a string consisting of combined tags!

    I need 2 separate working tags for one sound

    It seems that there is a bug in construct 3

    You can't just separate 2 tags with spaces-the compiler doesn't skip them!

  • It says that you can make 2 tags separated by spaces

    It doesn't work

    MULTI is enabled in the audio properties

    Is this a bug?

    maybe not a space should be and something else?

    The tags must be different-they are for different purposes!

    Moreover, if you do it like this, it works. "123""456"

    But if there is a str function instead of a tag the compiler no longer accepts it(and without a space-which contradicts the context hint that it is needed)

    This is clearly a bug

    On your screenshot, on "Tag", add a space before "audio", so it looks like " audio".

    And, before " audio", add &

    When construct processes this, it becomes: 50 audio

    Your screenshot right now, becomes: 50audio

    (50 is an example).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A construction like "tag1" " tag2 " doesn't work!

    When you try to insert a space, the compiler swears and does not enter the string

  • A construction like "tag1" " tag2 " doesn't work!

    When you try to insert a space, the compiler swears and does not enter the string

    I don't need a single tag!

    The.&. operator-combines tags-two in one

    And I need it to be like this for example. "audio" "audio2"

    But it doesn't work that way-the compiler won't skip the space between tags!

    And here is "audio" & "audio2". it ends up with ONE tag "audio audio2"-I don't need that!

  • > A construction like "tag1" " tag2 " doesn't work!

    > When you try to insert a space, the compiler swears and does not enter the string

    I don't need a single tag!

    The.&. operator-combines tags-two in one

    And I need it to be like this for example. "audio" "audio2"

    But it doesn't work that way-the compiler won't skip the space between tags!

    And here is "audio" & "audio2". it ends up with ONE tag "audio audio2"-I don't need that!

    If you typed into the tag:

    "Audio1" & "Audio2"

    Your tag will be 1 tag: Audio1Audio2

    If you typed with a space:

    "Audio1" & " Audio2"

    Your tag will be 2 tags: Audio1 and Audio2.

    Try copy and pasting exactly what Fedca and Ashley suggested, it will be 2 tags because there is a space before the word 'audio':

    str(Midi.NoteNumber - 23) & " audio"

  • It works randomly((

    This is not 2 separate tags obtained-and you can see it in the debugger

    And the code of my program does not recognize both of these tags separately((((

    Conditions don't work

    So-in the end, two tags are not obtained

  • I rearranged the arguments and everything worked

    Very strange

    Apparently construct 3 for some reason does not digest the "str" operator well???

  • Apparently construct 3 for some reason does not digest the "str" operator well???

    No, str expression works as expected. You need to read again all the comments in this post.

    "tag1"&"tag2"="tag1tag2" <- a single tag

    "tag1"&" tag2"="tag1 tag2" <- two tags, separated by space

    "tag1"&" "&"tag2"="tag1 tag2" <- also two tags, separated by space

  • Thank you to everyone who answered-the problem was solved with a space and rearrangement of terms!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)