bolosaur's Forum Posts

  • Ashley yeah, it's just a simple JPG export to illustrate the original image size, in response to a different question. The original image is in PNG format and has an alpha transparent backdrop.

    However, the characters are aligned to the upper left corner in each character cell, despite otherwise being properly spaced. Are you suggesting that this is the source of the problem?

    I can't try it out right now, but I will as soon as possible.

  • Ashley I'm already using transparent background and transparent spaces between each character. You can see it yourself when looking at the fontset image I just pasted. It seems that it's not working as you are suggesting. :-/

  • Bump.

  • Ashley

    Sorry, my last post didn't make much sense. I meant to say that I'd like for the SpriteFont plugin to work with full fluid letterbox scaling rather than integer scaling. Integer scaling creates a lot of letterboxing, which unfortunately completely ruins the immersion that I'm trying to create with my project. At the same time I also need to be able to use a bitmap font since system fonts are too volatile.

    Any chance of seeing a fix for this bug anytime soon?

    EDIT:

    Edge fringing or "bleeding" is a normal result in computer graphics when using floating point positioning or scaling, and is not at all specific to Construct 2. It's important to ensure your sprite sheet has at least one transparent pixel between characters to ensure that bleeding does not occur.

    I've actually played around a lot with this glitch since it has existed for quite some time, and even attempted to add a ridiculous amount of spacing in the bitmap font sheet as you suggested, but unfortunately this doesn't fix the problem. The glitch will appear no matter what. :-/

  • Thanks for the reply Ash.

    Pixel rounding makes no difference, but switching from letterbox scaling to letterbox integer scaling fixes the issue.

    However, I was hoping to be able to use letterbox scaling without integer, since I don't want any letterboxing.

    In other words, is there a way to fix the glitch when using integer scaling?

    Thanks again.

  • Well, even if you are able to count newlines there still doesn't seem to be a way to remove the top line, or is there?

  • Yeah I'm still working on it, but if you need help you can hit me up on IRC.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I thought that the power-of-two-principle was more about performance enhancement when it comes to Construct 2, but it's a good guess. Maybe Ashley can confirm?

  • When you add it in to Construct, click on the SpriteFont, and look at the properties. Tweak these slightly (character width, etc).

    Look at the h in your image above. It is picking up a line of pixels beside it. I assume it's a capital H, or maybe even a border.

    I already explained that this is wrong.

    It's not picking up pixels from other characters because the spritefont is upscaled from an original 1:1 scale bitmap image.

    This is a glitch, not a SpriteFont configuration issue.

    Do you mind if we see a capx or a sprite sheet?

    Sure, here's a JPG copy of the original image:

    <img src="https://copy.com/WT00FdgYYC4s/c2_spritefont_sheet.jpg" border="0" />

    The sprite sheet image's resolution is 261x64px with each character having a 9x16px resolution, and the black background color is replaced with alpha transparency in Construct 2

  • Hi,

    I'm trying to create a text-based console interface using the SpriteFont-object in Construct 2, but it seems to me that it's impossible to append text to the object if the textbox is already completely filled up?

    Furthermore, there doesn't appear to be any way to count the number of lines in a text string so that you can remove the top line?

    Anyone know how I could get around this issue?

  • I see it now... the sprite sheet you're using is wrong. The tool previously posted will help.

    Could you explain what is wrong?

    And when I saw image (gone now) it looks like that is your problem (you catching letter next to it. above it. or below it.

    It's not catching the surrounding letters, because the bitmap image I'm using is in 1:1 scale. In other words, it's a visual glitch.

    See "r" and "i" big space between - you need to manually set up letter spacing. "I" takes up less space which means more white space etc etc

    What do you mean?

  • Hi,

    I keep having the following issue:

    <img src="https://copy.com/TmDRx313xHXw/c2_spritefont_artifacts.jpg" border="0" />

    As you can see there are strange artifacts around the letters.

    Anything that the devs can give input on?

  • Ashley I'm always using the latest version, and I'm on a Nvidia GeForce GT 650M with second latest drivers installed, as the latest drivers are faulty.

    Have the C2 devs never noticed this issue with the application? Because it seems like somewhat of an elephant in the room to me.

  • Hi,

    I'm trying to use the official Touch plugin to get the absolute X and Y positions of a user's touch input on the canvas.

    However, if the topmost layer has its scrolling set to 0,0, then the absolute position of the touch object is also affected.

    This shouldn't be happening, should it?

    How can I get around it?

  • Hi,

    I'm having issues with my Construct 2 application constantly crashing.

    During any given session, the application will crash at least 3-5 times for no apparent reason, and I keep losing a lot of work because of this even though I frequently save.

    Is anyone else experiencing this? Because it doesn't seem reasonable to me.