Put Sound Effect during Score Count Up?

Skyrocket_EntertainmentSkyrocket_Entertainment Member Posts: 206
edited February 2014 in Working with GS (Mac)
I have Score Count Up in the scoreboard and i want to apply sound effect during counting up.

Here what behavior been used for Score Count Up.

Interpolate:
Interpolate Attribute " self.score " to " game.score "
Duration 2.

How can i apply sound effect?

Thanks.

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    edited February 2014
    Need a little more info on your rules pertaining to this interpolation. What triggers the interpolation of the score?

    If it's something like when an object collides with another, you would just add a play sound behavior into that collide rule.
  • It's a high score in the scoreboard.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    As @SlickZero suggested, just add a Play Sound behavior to the rule that contains the Interpolate behavior.
  • @tatiang i already tried that but sound stop while score still counting up in the scoreboard.

    I want " sound and score count up " start and stop together at same time.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Make sure you have Run to Completion checked in your Play Sound behavior.

    What is your rule condition for your high score? It's usually something like When game.score > game.highscore.

    Is your sound file two seconds in length (the same duration as your Interpolation)?
  • My sound file is 1 second length.

    I want it sounds repeatedly until score counting stop.
  • WhySoCREATIVEWhySoCREATIVE Member Posts: 75
    Add a timer for Every 1 Sec Play sound
  • Solved it.
    Duration of Interpolate is 2 seconds. So i put Play Sound in Timer as " For 2 " seconds.
    My file sound plays repeatedly until 2 seconds, then stop by itself.
    :)
Sign In or Register to comment.