Adding Music When Score: Distance?

Discussion in 'How Can I...?' started by johnocampo89, Jul 11, 2016.

  1. johnocampo89

    johnocampo89 Avid Boxer

    Joined:
    Feb 22, 2016
    Messages:
    210
    Likes Received:
    9
    Is it possible to add sound when score distance is counting? I don't think it's possible but just wanna confirm :) thanks.
     
  2. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    I think the best you could do is to use coin actions instead of distance and then you can add sound effect or music or whatever you want.
     
  3. johnocampo89

    johnocampo89 Avid Boxer

    Joined:
    Feb 22, 2016
    Messages:
    210
    Likes Received:
    9
    Hehe good thinking but i have both, score is based on distance and there are coins to collect to purchase characters.
     
  4. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    Hmm maybe you can keep using distance score and place 0 coin actions to equal distances all over your scenes to make the sound...
     
    johnocampo89 likes this.
  5. Jayson

    Jayson Boxer

    Joined:
    Oct 19, 2015
    Messages:
    85
    Likes Received:
    58
    Use event observers.
    Sample, on your UI_1, create an event observer that activates when distance = say 100.
    Connect it to UI_2(a copy of UI_1) with an intro sound. On UI_2, set the observer to 200... and so on.

    This works on regular intervals like every 50/100 but not on every single distance change.

    You can also do it like this:
    Sound every 50 distance until 500.
    Sound every 100 distance from 500 - 1000.

    Not an elegant solution but it works on short distances. :)
     
    johnocampo89 likes this.
  6. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    You can use coin action and set reward points,
    So have two coin actions one is set to coin reward 1 for your coins.
    and second action, opacity set to zero and have it reward point 1. and place apart at the required distance.
     
    johnocampo89 likes this.

Share This Page