hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    BM fonts have no blending options

    Scheduled Pinned Locked Moved
    Comments & Feedback
    3
    17
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Aidan_FireA
      Aidan_Fire
      last edited by Aidan_Fire

      In my game, hitting enemies with your shield will destroy them and give you score, and a label will spawn where they got destroyed telling you how much score you got. Also, everything in my game is made up of particles and additive effects, which included the score label. I decided to switch to BM font labels (because TTF are too laggy when you destroy lots of enemies in a short time), and realised I can't make the BM score labels additive. â˜šī¸

      D 1 Reply Last reply Reply Quote 0
      • D
        Deeeds @Aidan_Fire
        last edited by

        @aidan-oxley How are you even getting BMFonts into hyperPad?

        Aidan_FireA 1 Reply Last reply Reply Quote 0
        • Aidan_FireA
          Aidan_Fire @Deeeds
          last edited by Aidan_Fire

          @deeeds Magic 🙂 🌟

          Ok fine, through file editing.

          D 1 Reply Last reply Reply Quote 0
          • D
            Deeeds @Aidan_Fire
            last edited by

            @aidan-oxley Well done.

            Without Additive blend mode... I can't use them. I'm completely and utterly dependent on additive blend mode, for the same reasons as you... everything has that look. And it is the most desirable look. In.the.world ;)

            Aidan_FireA 1 Reply Last reply Reply Quote 0
            • Aidan_FireA
              Aidan_Fire @Deeeds
              last edited by

              @deeeds Yeah, additive effects are so pretty. The BM fonts look really ugly in my game (but at least my game doesn't freeze for a frame or 2 when I kill and enemy)

              1 Reply Last reply Reply Quote 1
              • Aidan_FireA
                Aidan_Fire
                last edited by

                Still don't have blending 😛 can we get it next update?

                1 Reply Last reply Reply Quote 0
                • RobinsonXR
                  RobinsonX
                  last edited by

                  Are you using spawn on object to summon text?

                  If so, there's a less laggy method. You could recycle the objects using the Loop (for each) function. If you need help on that, I can create a sample and send it here. 😊

                  Aidan_FireA 1 Reply Last reply Reply Quote 0
                  • Aidan_FireA
                    Aidan_Fire @RobinsonX
                    last edited by

                    @robinsonx I'm not sure you understand what I'm asking for. You know how objects have blending mode options? Like you can use additive or dodge or burn etc? TTF fonts have this option, while BM fonts are stuck with no blending options but I want the dodge effect. I don't want to just use TTF because they are too laggy for spawning tonnes of them (I'm using some labels as score numbers that pop up when you get score, similar to damage numbers in other games).

                    1 Reply Last reply Reply Quote 0
                    • Aidan_FireA
                      Aidan_Fire
                      last edited by Aidan_Fire

                      Oh I see what you're saying now, yes they are spawned labels but no matter what you do with spawning TTF labels they will always be laggier. I had a project to prove that just having TTF labels sitting in your project doing absolutely nothing is more than 10x laggier than having BM fonts sitting around doing nothing (as in you can have like 10x more BM fonts than TTF fonts before the project starts to lag and go below 60fps).

                      In my project it would be hard to tell exactly how many I would need to keep for recycling, but again just having them sit outside the screen waiting to be recycled might be too laggy (at least on iPad Air).

                      1 Reply Last reply Reply Quote 0
                      • RobinsonXR
                        RobinsonX
                        last edited by

                        I used this technique before, I just Hide the text when it's done displaying and Show the text when it pops up, I think it saves rendering time. :)

                        Aidan_FireA 1 Reply Last reply Reply Quote 0
                        • Aidan_FireA
                          Aidan_Fire @RobinsonX
                          last edited by

                          @robinsonx Also just changing the text on a TTF font is a little bit laggy, these score indicators for my game aren't always giving the same amount of score so I have to set the TTF label every time they spawn. Try running a 0s timer that just adds 1 to a TTF label. If your iPad doesn't lag, then I want a new iPad 😛. BM fonts are so much nicer for labels that change often in games, they're just a bit harder to use.

                          1 Reply Last reply Reply Quote 0
                          • RobinsonXR
                            RobinsonX
                            last edited by

                            0_1549365518102_6AE86DD4-B396-46AD-9AC9-E0A00342BB83.jpeg

                            😅 It's fine for my device... but then that would mean that some devices would need to optimize for a less laggy gameplay, most games have an automatic graphic setting to fix this.

                            In this case, we could have an option to use a TTF font or a BM font.

                            Aidan_FireA 1 Reply Last reply Reply Quote 0
                            • Aidan_FireA
                              Aidan_Fire @RobinsonX
                              last edited by

                              @robinsonx Wow, you even have glow effect on it, and you're changing that label every frame too? My iPad is clearly getting old lol. But still, if that lags my iPad to death it is still pretty resource heavy and will lag a game down a bit if you have other heavy stuff happening and probably use more battery. Could you duplicate that label a few times? Curious to know how many of that label your iPad can handle before it lags.

                              1 Reply Last reply Reply Quote 0
                              • RobinsonXR
                                RobinsonX
                                last edited by

                                0_1549452009320_0DB5593E-C12D-4736-AF74-CAA0CC6E06DD.jpeg

                                I can place another one before it starts to lower the fps a bit. 3 labels going out with a timer of 0 seems to be the cap. :)

                                1 Reply Last reply Reply Quote 0
                                • RobinsonXR
                                  RobinsonX
                                  last edited by

                                  Oh, yeah and each label has it's own timer that executes every frame. @Aidan-Oxley

                                  Aidan_FireA 1 Reply Last reply Reply Quote 0
                                  • Aidan_FireA
                                    Aidan_Fire @RobinsonX
                                    last edited by

                                    @robinsonx It also really depends on the font you use and especially the size of the font. My label is a little bit bigger than yours I think but I only have 1:
                                    0_1549464221282_267D2B28-40EF-4711-A764-C678C0D6B9FE.png

                                    1 Reply Last reply Reply Quote 0
                                    • RobinsonXR
                                      RobinsonX
                                      last edited by

                                      Woah...

                                      Yeah, I think making the font smaller and the scale big helps a bit. I noticed that it may lower the resolution of the text but it increases performance. :)

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post