pcfernandesjr's Recent Forum Activity

  • Hi folks, is there any procedures to make text objects looks crispier? For instance, in the image below I placed sprite font objects in the right side to compare with the text ones and the difference is huge...

    I thought of using regular text objects since I want to translate my project to other languages in the future, but if there's no other way than having it this blurry, than it seems I have no choice than using sprite fonts, is that right?

    thanks in advance.

    Tagged:

  • Thanks for the tips guys, I changed the bits pointed out and it works fine now!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I programmed an attack behavior for an enemy but for some reason I couldn't find yet, he goes through the intended loop a couple times and then stops working.

    Each instance has a "timer" value, that is added to the actual timer once they enter in neutral state. Then, after the timer reaches zero, they attack. after finishing the spit animation, they enter in neutral state again, the timer is replenished and the loop starts over.

    Or so I planned, as I said in the beginning, it successfully loops just one or two times before it stops working.

    Here is the code.:

    If anyone can help me with this, thanks in advance.

  • I never thought about this before, but I think all characters in the sprite font image need to be the same width. Spacing data is not used to determine character position in the image. It is only used to remove extra empty space from the right if the character is smaller than the default width.

    So think of the sprite font image as a tilemap - each character needs to be inside its own tile.

    I highly recommend using Spritefont Generator tool - it will format the image and generate the spacing data for you.

    I just placed the characters manually into a 15x15 grid, and yeah. It is just as you said. Now is works perfectly fine.

    Thanks for the help. I'll have a look at the tool you suggested earlier. I'd still like to play around with font designing and something that makes this part faster would be pretty handy.

  • Can you share your project file? Or a blank project with this sprite font added and configured?

    Also, what exactly is the problem - is the spacing data not working for all characters? or some characters?

    Sure! Also, edited the previous post with an image of the result.

    you can download the .c3p file here: drive.google.com/file/d/1UqeAyb4ihZ0R1wGJE7QrPe9lHs_HuPFK/view

  • Have you tried these tools? They should generate the correct spacing data:

    https://www.construct.net/en/forum/game-development/tools-and-resources-27/sprite-font-generator-v3-64038

    https://www.construct.net/en/forum/construct-3/general-discussion-7/spritefont-spacing-editor-150213

    Thanks for the suggestions. I will check it out as a last resort.

    I tried to configure the character widths using events as well, but they're not working as well.

    Does the .png file dimensions somehow break the functionality?

    For the sake of clarification, Here is what I am trying to configure, without success:

    Font .png image:

    Character Set:

    ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,;:?!-_~#"'&()[]{}^|`/@°+=*%€$£¢<>©®ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØŒÙÚÛÜÝÞàáâãäåæçèéêëìíîïðñòóôõöøœùúûüýþßÿ¿¡

    Character Width adjustment event

    Result:

  • Hi guys, I need some help understanding what I'm missing while configuring the character spacing for sprite fonts.

    - This is the array I configured for Spacing Data:

    [[14, "ÆŒ"], [13, "æœ"], [12, "@"], [11, "€©®"], [10,"MWmw#$¢Ð"], [9, "ABCDGHKNOPQRSTUVXYZ0123456789&£ÀÁÂÃÄÅÇÑÒÓÔÕÖØÙÚÛÜÝÞþß"], [8, "Eabcdeghknopqrsuvxyz~ÈÉÊËàáâãäåçèéêëðñòóôõöøùúûüýÿ"], [7, "FIJL%ÌÍÎÏ"], [6, "jt?-_\"()[]{}=*¿"], [5, "^°+<>"], [4, ",;/\\"], [3, "il.:!'¡|`ìíîï"]]

    I added an extra blackslash for both " and \. But even that didn't solve the problem.

    - Do I need to define a specific Character width/height beforehand? Or Spacing Data is supposed to override these settings?

    Thanks in Advance.

    Paulo.

  • You do not have permission to view this post

  • You can right-click the object name and choose "Select all in the project".

    If you have an instance on a "storage" layout, you can quickly change its properties this way. But of course, if you have multiple instances on different layouts, you need to be careful, as changes will be applied to all of them.

    Thanks for helping me!

  • One big difference I noticed from C2 to C3, is that I can't setup an object's behavior properties without having said object on the layout I am currently working at.

    The 'trick' I used on C2 was having a dedicated layout to place an instance of everything, with that I could edit their properties from the project bar on any other layout.

    But now it is not possible anymore

    So, how do you guys recommend to work? Do I need to place an instance of every object I'll use on my layouts, even though they are not supposed to be there from the beggining?

    Thanks in advance

    Paulo

  • I could post the complete code of how you got it because I find myself in the same place

    Hi, sorry for taking so long to answer.

    Here is how I did it (It is basically based on the link shared earlier here):

  • Thanks guys! It is working wonderfully now.

pcfernandesjr's avatar

pcfernandesjr

Member since 12 Dec, 2012

None one is following pcfernandesjr yet!

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies