How to set tag to song that isn't playing?

  • Hello,

    Is there a way how to set the tag to the song that hasn't been played yet ?

    I want to detect random choosed song. But I can´t set the tag in choose command beacause it will set the tag to all songs.

    PICTURE: dropbox.com/s/zxm69peq0ywg071

    audio%20tag.PNG?dl=0

    Thanks for reply <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Add a global variable 'GodIsaDJ' (text)

    Make a empty sub event under event 1

    Now, in that empty sub event make an action that sets 'GodIsaDJ' to the choose expression that you have in place.

    In the second action you can Play (by name) with name = 'GodIsaDJ' and tag = 'GodIsaDJ'

    Event 2 i dont understand. You can keep it as it is, if there is only 1 animation to play. Just dont have that animation in loop.

    If there are as many animations as songs. May i suggest to name the animations the same as the song.

    Now event 2 will be ....

    Is tag playing ('GodIsaDJ')

    _____ set animations to 'GodIsaDJ' (dont have that animation in loop)

    Audio should have an Audio.tag expression to go with 'Is any playing'. But it does not.

  • Thanks.

    Event 2 do random choice of songs

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