Results 1 to 11 of 11
  1. #1
    Iron Guard
    Join Date
    Mar 2010
    Location
    Netherlands
    Posts
    755

    Default [SOLVED] Scaleform HUD, dynamic text is replaced by squares

    Hey people, so I just tried to make my HUD display my XP, Health and Level-number, all works fine, except for the fact that where there should be a number telling me what my level is, there is a little square.

    I have my font set to "export for ActionScript", so I don't what else causes this...

    Hope you can help me out!

    P.S.: I built my HUD on Grosie's tutorial, and when I tested just the Health-bar and percentage, it worked fine, no squares or anything.

    I also tried putting the textfield in a movieclip that was set to export for ActionScript, but that didn't work...
    Last edited by mktwo; 07-04-2010 at 12:57 PM.

  2. #2
    Iron Guard
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    517

    Default

    Embed your Font into the SWF.

  3. #3
    Iron Guard
    Join Date
    Mar 2010
    Location
    Netherlands
    Posts
    755

    Default

    Would you mind telling me how exactly? Because I think I already have, but just to make sure, you know..

  4. #4
    Iron Guard
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    517

    Default

    Go to your text element in flash and click "Character Embeding"....

    There is a font lib thing too, for that I don't know how that works (in Gfx).

  5. #5
    Iron Guard
    Join Date
    Mar 2010
    Location
    Netherlands
    Posts
    755

    Default

    I searched for "Character Embedding", but the closest I could find was "Font Embedding", so I think you meant that, but in Font Embedding Options I checked "Export for ActionScript" and "Export in frame 1", I also checked "All" in the Character Ranges, but it still doesn't work...

    Could it be a scripting problem? This particular bit is for telling what number to display:
    Code:
    LevelTF.SetString("text", ""$CurrentLevel);
    I am not sure if that's the right way to do it, though, maybe there is something wrong with that?

  6. #6
    Iron Guard
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    517

    Default

    No, select your Text object in Flash, go to properties and click Character Embedding, there you can choose which ranges are embedded, that way will function. That docs what you found puts the font to the file's library and I don't know how that works with Gfx.

  7. #7
    Iron Guard
    Join Date
    Mar 2010
    Location
    Netherlands
    Posts
    755

    Default

    I can only find "Embed..." under the Character submenu, but that just takes me to "Font Embedding", where I already checked all the necessary checkboxes..

    I'm using Flash CS5, btw.

    Here's some screenshots:
    This Image Was Automatically Resized by using the Screenshot Tag.  Click to view the full version
    This Image Was Automatically Resized by using the Screenshot Tag.  Click to view the full version
    This Image Was Automatically Resized by using the Screenshot Tag.  Click to view the full version

  8. #8
    Iron Guard
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    517

    Default

    I use CS4 and I get this one, and I know for sure that works.

    http://picasaweb.google.de/lh/photo/...eat=directlink

    Seems in CS5 it wants to put the font into the library. Sorry I just don't know how that works.

  9. #9
    Iron Guard
    Join Date
    Mar 2010
    Location
    Netherlands
    Posts
    755

    Default

    Alright, well, thanks for trying anyway!

    Edit: So I just tried, out of desperation, to not just check "All" in the character ranges, but also add numerals, lower- and uppercase, and for some strange reason it works now...

    I swear, I'm about to lose my mind :'D
    Last edited by mktwo; 07-04-2010 at 12:56 PM.

  10. #10
    Iron Guard
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    517

    Default

    There you go

  11. #11
    MSgt. Shooter Person
    Join Date
    Nov 2009
    Posts
    80

    Unhappy

    Quote Originally Posted by mktwo View Post
    Alright, well, thanks for trying anyway!

    Edit: So I just tried, out of desperation, to not just check "All" in the character ranges, but also add numerals, lower- and uppercase, and for some strange reason it works now...

    I swear, I'm about to lose my mind :'D
    A proper solution for this would be nice at some point. That sadly didn't solve it for me.

    Edit:
    Actually it did work. I forgot to reimport the swf after saving it. Am used to Unity 3D re-importing assets automatically :P
    Last edited by DragonSpawn; 08-12-2010 at 09:42 AM.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.