Another Bitmap Font Method?

0 favourites
  • 6 posts
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • Hey all, i'm looking another method to create bitmap font via events, it can relate to invisble text, if we type A, it could automatically creates a "bitmap font sprite" with start frame 1 as "A" sprite. The plugin and loop system wouldn't help for mobiles because it will won't work or performance problems.

    Do you have an idea?

    Thanks!

  • You could use a sprite with a frame per letter.

    Then with events you could do a loop to read each letter eg mid(Text.Text, loopindex, 1).

    Finally once you get a letter you can convert it to a frame number. ex find("abcdefghijklmnopqrstuvwxyz", letter).

    Here is a example I did a while back:

    http://www.scirra.com/forum/suggestionsprite-font_topic44315_post277605.html#277605

  • You could use a sprite with a frame per letter.

    Then with events you could do a loop to read each letter eg mid(Text.Text, loopindex, 1).

    Finally once you get a letter you can convert it to a frame number. ex find("abcdefghijklmnopqrstuvwxyz", letter).

    Here is a example I did a while back:

    http://www.scirra.com/forum/suggestionsprite-font_topic44315_post277605.html#277605

    Hello R0J0hound, i already used your good example, but it uses loop which may cause performance issues for mobile, i'm looking another workaround which doesn't use loop. Do we have another workaround?

  • Isn't possible to make a list of alphabet without using loop?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A loop is unavoidable. You could unroll the loop and make more events to check each letter of the text but you would have to repeat the events the max number of letters you want to handle. The end result would be a bunch of repetitive events that are hard to maintain, only handle a maximum number of letter, and would likely end up performing the same.

  • A loop is unavoidable. You could unroll the loop and make more events to check each letter of the text but you would have to repeat the events the max number of letters you want to handle. The end result would be a bunch of repetitive events that are hard to maintain, only handle a maximum number of letter, and would likely end up performing the same.

    Oops, i believe you're right, anyways i see what i can do if switch group on/off while the spritefont is executing.

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