Yuzurukyun

  • Joined Jun 19, 2023
  • 0 best answers
  • I have spent a full 24 hours attempting this for the past two days, but I'm throwing in the towel for now.
    Essentially, I need help approaching and creating custom AudioStreams, namely for Opus. It HAS to be Opus for project reasons. I've managed to get it down to creating the classes, but I'd hit a major roadblock when attempting to override load_from_file and essentially decode the audio file for the application to comprehend.

    In short, I'm stuck due to a lack of knowledge. Thank you in advance.

    • I want to animate a TextureRect in the context of animated UI, so that its texture changes every few milliseconds. I have done it with an editor, but I think it is prudent to do this aspect by code. I watched many tutorials and read the documentation, but I realised that most of the relevant tutorials are outdated because of the existence of AnimationLibrary.

      I could not wrap my head around AnimationLibrary and I got stuck because of this issue. Is there a way to simply use an AnimationPlayer with an Animation resource instead of an AnimationLibrary?

      Thank you in advance!

      • award
        The links were definitely helpful, thank you!
        Though, I assume only images and few music/video file types are supported but I could research further.

      • The title says it all.
        I want to load external assets without decompiling and recompiling the project, even though it may seem like an asinine idea. I have a good reason for this: my project is similar to an application, so I want it to be able to access new resources at any given time. The alternative is using PCKLoader, but I would like to know if there is a way to do this without relying on PCKs.

        If it is not possible, do you have any suggestions for tackling this issue?

      • I apologize if my choice of words is poor or this is a duplicate post, but I don’t know the exact term for what I want to ask, unfortunately. However, I hope you can understand my question with the help of the screenshots.

        Basically, I have noticed that most of my UI elements are fixed, and that is probably a good design choice, but in some cases, I want them to expand when the screen size increases, either to fullscreen mode or maximized window mode.

        Here is an image that illustrates my problem by using the Godot Editor:

        My main question is, how do I go about this?
        Thanks in advance!

      • GlyphTheWolf I am not very experienced with audio, but is there any feature that OPUS encoding have you can't have with any other supported encoding?

        It is really desirable for me to have it on OPUS solely because of its high quality audio and small size. Assuming I have a hundred OPUS music files that are 4 minutes in length, it would at least be 50-65% lower in size compared to its MP3 counterpart.

        But thank you for the idea, I will attempt to do so.

        • xyz replied to this.
        • Good day, I have a question. And this is probably not something a beginner should do but I want to ask anyway.

          My project uses a wide variety of audio types, for what reason is something I would not disclose. But the point is that I want it to be able to use MP3, WAV, OGG and the likes. But there is one that my project uses a lot -- and it would be OPUS.

          When I was looking through the Godot documentations, especially the past ones, I noticed it used to support it back in Godot 2, but nothing after that. My question is: how do I implement custom Audio types such as OPUS?

          Obviously, the answer would be to implement a plugin or fetch it off some GitHub but I want to know what you would personally do if the aforementioned fails.

          • As per the title, is it possible to expand and wrap the text vertically? 🤔
            The LineEdit node has a property called expand_to_text_length, but it expands horizontally and could go off-screen, which I do not want.
            So, I'm wondering if it's possible to have it instead expand vertically whilst wrapping text towards its expansion?