blackhornet's Forum Posts

  • Sorry about that. I didn't notice the CC forum. No, I never used CC.

  • I didn't get that far, but there is some pathfinding working.

    OpPASS v1-1-4_BHT_PF.capx

    I did have to change the PF Cell Size, as it was too big for your narrow paths.

  • The key is to use instance variables on the progress object. That way you can just alter the counter that controls the progress, and use all of the same code for the display.

    ProgressTimerSample.capx

    I'm using Timers here, but they are just an means to an end.

  • You could use layers. You can then cross-fade your layers for transitions.

  • Here's a starting point:

    Mierdinsky_BHT.capx

  • I've seen this done on the forums before - just the other day in fact. I just can't find it at the moment.

    Edit: found one:

    copperlicht

  • Sorry, it's still not clear how your game works, and what is broken. I'm also not seeing the Pathfinding mechanism there, that you started this thread with.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A CAPX is always the fastest way to get help. Just be clear what you want.

  • A trigger happens sometime in the future, you don't know when. It could be in a tick, it could be in X seconds. Since you are calling Find path, then immediately checking the trigger condition, the chances of the trigger being true within that time are pretty much zero. You need to move your trigger outside of the For loop, so that when it occurs sometime later, it can be processed and your Move on path called.

  • You're doing something wrong if you need 100 OR comparisons. Maybe post what you've got so far for review.

  • 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.