Author Topic: TMP - New Sprite Tag & Sprite Asset Creation  (Read 3085 times)

Stephan B.

  • Administrator
  • Hero Member
  • *****
  • Posts: 5687
TMP - New Sprite Tag & Sprite Asset Creation
« on: February 11, 2015, 04:33:27 AM »
Here is a video explaining the functionality of the new <sprite=xx> tag feature and Sprite Asset creation and editing process.

<a href="https://www.youtube.com/v/srmg9EWpZ0E" target="_blank" class="new_win">https://www.youtube.com/v/srmg9EWpZ0E</a>

Thrawn

  • Full Member
  • ***
  • Posts: 152
Re: TMP - New Sprite Tag & Sprite Asset Creation
« Reply #1 on: February 11, 2015, 12:12:42 PM »
Great addition!!

AndrewChewie

  • Newbie
  • *
  • Posts: 2
Re: TMP - New Sprite Tag & Sprite Asset Creation
« Reply #2 on: April 21, 2015, 02:20:57 AM »
Hi, and thanks for this great feature you've added (one of those why we use your asset)

Couple of questions:
1. What is size relations between font size and sprite in it? how to get 1:1 sprite size in text?
2. Is there a way to get sprites by name and not by index? if there is a ton of art in text it becomes hard to find necessary sprite by index.

Regards,
Andrew

Charlie Oscar team

Stephan B.

  • Administrator
  • Hero Member
  • *****
  • Posts: 5687
Re: TMP - New Sprite Tag & Sprite Asset Creation
« Reply #3 on: April 21, 2015, 02:28:25 AM »
Hi, and thanks for this great feature you've added (one of those why we use your asset)

Couple of questions:
1. What is size relations between font size and sprite in it? how to get 1:1 sprite size in text?

The height of the sprite is normalized to the height of the text based on the point size used. Then the width is adjusted to maintain the sprite's aspect ratio. So regardless of the resolution of the sprite, at scale 1.0 the sprite will be the height of the text.

Quote
2. Is there a way to get sprites by name and not by index? if there is a ton of art in text it becomes hard to find necessary sprite by index.

The ability to reference the sprites by name is a feature that I will be adding.