Positioned Audio at Position VS at Object

0 favourites
  • 6 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • Hi, i'd like to know if u use play at position say Sprite.X, Sprite.Y, if that sprite is a moving object, will the sounds position move with it or stay at the start position?

    In a simple new project I can get Play at Object working no problems, just doesn't work at all in my more complex project. Really annoying that I have no controls to manually adjust left/right stereo mix using variables.

  • I think I figured it out, it seems as though there is bug in positioned audio code in the sense that it you create an object on start of layout - that object will NOT play sound IF you Positioned Audio: Play at Object also on start of layout.

    So it seems the object needs to already exist on the layout before hand, on you have an invisible object that positions itself to your moving object.

  • That's not really a bug; how can you position a sound at an instance that doesn't exist yet? Use a Wait command, or On Created, or something similar as a workaround.

  • That's not really a bug; how can you position a sound at an instance that doesn't exist yet? Use a Wait command, or On Created, or something similar as a workaround.

    Yes you're right, I figured it out that same day with a Wait action of 0.1 seconds after start of layout. And that fixed the problem since the object has already been created before the sound is positioned to it.

    I know it's not technically a bug, but what if the the positional sound was programmed to try again one more tick after layout start if the object named was not found on the first tick??

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • "Wait 0 seconds" is the equivalent of waiting one tick.

  • "Wait 0 seconds" is the equivalent of waiting one tick.

    Thanks seven, but for my own logic's sake i'll leave it at Wait 0.1 seconds hehe

    Becos Wait 0-seconds looks like a bug i might accidentally delete in future lol

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