Outline and text shadow in text object.

Not favoritedFavorited Favorited 0 favourites
  • 6 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • Hello everyone! I have encountered a problem with implementing a proper outline and shadow for text. I still don't understand why the construct developers haven't done these basic things. After all, you can't even apply a gradient to text in the standard way.

    My problem is that I have Text, which I need to convert into stylized text with an outline and shadow. However, I spent several hours, I tried to use Java scripts, etc., but it doesn't work. Using [outline] won't help. Because there is no shadow, no outline size.

    If you have a way to make a convenient style using stylesheet or other functions, I'll be glad to hear it. I give an example of the font below. I use webfont

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you use a SpriteFont? It would be the easiest solution.

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

    Another option is effects, but they don't always work well with text objects.

    construct.net/en/make-games/addons/449/better-outline

  • Can you use a SpriteFont? It would be the easiest solution.

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

    Another option is effects, but they don't always work well with text objects.

    https://www.construct.net/en/make-games/addons/449/better-outline

    I'm not sure about spritefont performance, memory consumption and optimization with it. When I used spritefont before, it could constantly shift position, could be displayed incorrectly, etc. And it seemed to me that it was much more inconvenient than the built-in web font. Maybe you can convince me otherwise, but I am very much interested in performance figures. I look at this from my past experience.

  • I'm not sure about spritefont performance, memory consumption and optimization with it. When I used spritefont before, it could constantly shift position, could be displayed incorrectly

    It's actually the other way around! Spritefont is much faster than text objects, uses less memory, and is always displayed accurately and consistently on all platforms. Webfonts, even when added to the project, are rendered differently on different devices, may shift up and down, may look fuzzy etc.

  • > I'm not sure about spritefont performance, memory consumption and optimization with it. When I used spritefont before, it could constantly shift position, could be displayed incorrectly

    It's actually the other way around! Spritefont is much faster than text objects, uses less memory, and is always displayed accurately and consistently on all platforms. Webfonts, even when added to the project, are rendered differently on different devices, may shift up and down, may look fuzzy etc.

    Yes, but in my editor, the letters of the spritefont look very strange, some big gaps, distances, letters can overlap each other, etc. Yes, I understand that this requires adjustment.. But, I would not say that it is a matter of 3 minutes.

  • the letters of the spritefont look very strange, some big gaps, distances, letters can overlap each other

    That's because you need to configure the spacing data and other parameters. Use the SpriteFont Generator app, it generates a file with all these parameters - all you need to do is just copy/paste them.

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

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