0
\$\begingroup\$

File Instancing

I am working with SMRT, a plug-in for godot engine. I have been wanting to switch out a language file with another as the game progresses. My problem is that I don't know how to properly instance a the new file as a variable. I know I have to add the file path to something to instance a file as a variable to be able to switch it out.

example

AudioStreamPlayer takes an AudioStream as a property. If the soundtrack of my scene is to switch I want a different AudioStream to play. To do that I would have to switch it out.

The question

How do I instance a file in a script?

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.