Is it possible to trigger a sound effect once two actors are in close proximity?

Hey there!

I'm working on a game were two actors are flying around the screen. One of them is controlled by the user while the other flies around randomly. Is there any way that I could trigger a sound effect, say the sound of wind, when the two actors are close to each other?

Any help is greatly appreciated.

Cheers,
Andrei

Best Answers

Answers

  • TitanFuryTitanFury Member Posts: 55

    Sweet! Thanks :smile:

  • TitanFuryTitanFury Member Posts: 55

    Iv'e been at it for some time, but haven't been able to figure out how to use it. Can you give me some pointers as to how I can approach this using the magnitude function?

  • TitanFuryTitanFury Member Posts: 55
    edited April 2015

    This is what I have been trying. Am I doing something wrong?

    Attempt

  • TitanFuryTitanFury Member Posts: 55

    I changed it to a higher number of pixels and it worked! I didn't realize that the magnitude measures from the centre of the actor (it even said so in the cookbook, silly me). Thanks for the help tatiang.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You're welcome!

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.