Independent audio control for multiple instances

0 favourites
  • 1 posts
From the Asset Store
Be quick and choose the right answer for the shown equation.
  • Hi All,

    I've been trying to set up a system where I can stop and play a single sound effect from multiple instances of an object in game at different times. I have tried a bunch of different ways but can never get it to work successfully. I think my problem lies in not being able to pick a specific object instance and reference the audio tag that is playing.

    In my most recent attempt, I have an instance variable that measures distance to player.

    If object.variable is less than 500:

    Trigger once: Play sound w tag "object"&object.UID

    If object.variable is more than 500: Stop sound w tag "object"&object.UID

    Even when using only two objects, the stop condition will not function correctly.

    I've tried other methods, picking instances etc. but no luck.

    Is this possible at the moment? I'm using the positional audio 'play at object'. Which tracks the object. Is it possible to pick the audio object that is tracking an object instance some way?

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)