0 votes

Issue description on github

Making sound for the first time and honestly i do not know if i do it right. I place the SamplePlayer2D node as an indirect child of viewport and all the features appear bugged. I've described more on github and included minimal example.. am i doing it right?

in Engine by (28 points)
edited by

Github example works fine when SamplePlayer2D is not a child of a Viewport node.

If you are making sound for the first time I bet what you need is SamplePlayer and not SamplePlayer2D.

Why? It is a feature of the engine and should be similarly complex to place this node or that node depending on the need. Made a workaround: created SoundPlayer2D nodes as children of a separate path beside a Viewport / Camera2D path and now i have spatial 2D sound i needed.

EDIT: tricky part was positioning. Root viewport doesn't move so have to place sound nodes relative to root viewport same as the owner objects are relative to camera. Tried making SoundPlayer2D nodes children of Node2D and positioning just one node but no effect. So had to position every SoundPlayer2D via script.

EDIT2: tutorials on using 2D sound properly are non-existent. Had to guess and hit what i assume was a bug.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.