blackhornet's Recent Forum Activity

  • Actually, I just started a thread to manage updates, as there is a new version as of yesterday.

    Sprite Font Generator

  • This is a Sprite Font generator for the official C2/3 Sprite Font plugin.

    Requires .NET 4.0 be installed. Available through Windows Update. or .NET 4.0

    CAPX sample of how to use the exported JSON data to configure the character widths via Array.Load JSON action (Construct 2 only)

    C2_GYFM_ImportSample_v3.zip

    2018-06-27

    V3.2 - Fixed leak of GDI objects. There is still an upper limit defined by Window's GDIProcessHandleQuota, which defaults to 10000. Each character consumes two of these handles, so there will be problems for character sets around 5000 characters.

    GiveYourFontsMono_v3_2c.zip

    2017-06-24

    V3.1 - Now supports the correct width for the SPACE character. After all this time, I didn't realize that, a) C2/3 actually can take the SPACE character as part of the width definition, and b) I could actually get the SPACE width from Windows (it's returned in a different field from every other character). The SPACE width data is always reported as the first element, for C2 and C3, in case you want to adjust it, since my sample CAPX has always managed the SPACE character manually, and was always just a guess.

    2017-04-04

    V3.0 - Now supports Construct3's new 'Spacing data' format! I also made a few changes to the 'Parameters'. After several iterations, I ended up with four fields for altering widths and shifts, but if you think about it, what it really is doing is adding extra transparent border pixels around the letter. I've reworded the fields and default all to 1, which provides the safest values for avoiding image artifacts, similar to how C2/3 adds a border when it generates it's internal spritesheets. If you know you can optimize them out, you can always set them back to 0.

    2016-01-13

    V2.7 - Fixed issue with very long Letterset text sizing off of the screen, making the Refresh, etc. buttons disappear.

    GiveYourFontsMono_v2_7.zip

    2015-09-28

    V2.6 - Added Vertical Shift

    2014-12-05

    V2.5 - Force TXT file to use UTF8 encoding. Characters can be altered if left at Default setting.

    2014-09-26

    V2.4 - Fix Sample Text being defaulted when Font dialog entered. Remove duplicate characters and space-character from Letterset.

    2014-07-19

    V2.3 - Fix Letterset being defaulted when Font dialog entered. Reverted back to .NET 4.0, so it still runs on XP.

    Requires .NET 4.5 be installed. Available through Windows Update. or .NET 4.5

    2013-12-11

    V2.2 - Fixed crash when reading a bad font.

    GiveYourFontsMono(spacing) v2.2

    2013-12-01

    V2.1 - Font dialog cleaned up and fixed bug in Shadow - wasn't including outlines in shadow generation. Fixed crash when Sample text has none of the letters in the Letterset.

    GiveYourFontsMono(spacing) v2.1

    2013-11-27

    V2.0 - Initial offering with outline-fonts. The GUI is still rough, but the basic functionality works. Not compatible with v1 (XML) files.

    GiveYourFontsMono(spacing) v2.0

    ================================================================================

    Requires .NET 4.0 be installed. Available through Windows Update. or .NET 4

    2013-11-19

    V1.12 - Fixed anti-aliasing bug (was patch 1.11.5). Fixed instructions getting cut off.

    GiveYourFontsMono_v1_12.zip

    2013-08-15

    V1.11 - Sample text area height was too short. Added % character to default character set.

    2013-08-15

    V1.10 - Save & Load support! Improved power-of-2 calculation. More details in the TXT file. Graphic fixes for both bitmap images, including scrolling. Sample updated to remove Browser reference to make copy/paste easier.

    2013-08-06

    V1.9 - fixed 'Reset to defaults' button positioning problem. Added an additional anti-aliasing option, better than the original. Altered minimum sizing to work with 'Ease of access' on Vista.

    2013-08-03

    V1.8 - GUI persistence and JSON export.

    JSON sample: {""c2array"":true,""size"":[2,21,1],""data"":[[[7],[8],[9],[11],[12],[13],[14],[15],[17],[18],[19],[20],[21],[22],[23],[24],[25],[26],[27],[33],[35]],[[""|""],[""Iil.,;:!'""],[""`""],[""j[]""],[""()""],[""rt-\\?""],[""f1\""/""],[""*""],[""J""],[""hknsu""],[""Labcdgpqvyz""],[""eox02356789?+=$?<>""],[""F4~?""],[""BET_#""],[""HNPSUZ&""],[""DKR""],[""CX""],[""AGVY""],[""MOQmw""],[""@""],[""W""]]]}

    2013-08-02

    V1.7 - More tweeks to width calculations. Added text display simulation. Horizontal shifting added back in. Fixed crash related to justification. Added boundary display option.

    2013-08-02

    V1.6 - Fixed anti-aliasing - broken in 1.3.

    2013-08-01

    V1.5 - 1.4 still shows as 1.3. No other change in this version but the number (1.5).

    2013-07-31

    V1.4 - Adjusted the spacing a bit. Scaling of the font was picking up some clutter from the next character.

    2013-07-31

    V1.3 - Added support for combining-characters, used in non-English languages, and math fonts.

    2013-07-31

    V1.2 - Now auto-calculates dimensions, optimizes for power-of-two, saves text file with the list of character width values that can be added to C2 via the "Set character width" action. Still need to do some cleanup as this was a big change from the manual mechanism. Also I'd like to find a better mechanism for getting the widths into C2.

    2013-07-20

    V1.1 - Added Left justification option, extra horizontal shifting, and defaults to C2s character set.

    C2's SpriteFont plugin uses Left justification, not Center justification.

    Tagged:

  • You can't add event sheets across projects. To copy, you need to select the items in the one project and copy them to the next.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • sling balls_BHT.capx

    Since you control the exact X position anyway, just do the math, rather than using collisions/overlaps, etc. I did have to add a bit of fudging, due to the anti-aliasing of the graphics, to make it look snug against the wall.

  • Seems fine to me. The bottom stops at the edges. Do you have a screenshot?

  • We're missing something here. When you you want it to be destroyed? When it touches the line, when it crossed the line, or after it's off screen?

  • You could use layers (Is on layer), or an instance-variable (via Families) that indicates the floor a character is on. Just add this extra condition for any collision testing.

  • Yes, that's the real issue. This is what Jase00 was alluding to. The issue isn't whether this can be done in C2, but whether the developer has the skill set to program the custom behaviour of shifting a set of tiles around, based on an internal data structure (array), and how many actually need to be created to fill the screen at any given time.

  • Change Is outside layout to (invert)Is on screen.

  • Posting a capx would be the quickest solution. Strip it down if you don't want propriety data in it.

    A good debugging too is the ChromeConsole plugin which lets you print debug statements to the console.

blackhornet's avatar

blackhornet

Early Adopter

Member since 28 May, 2012

Twitter
blackhornet has 26 followers

Connect with blackhornet