User Tag List

Results 1 to 2 of 2

Thread: Centered full screen text

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleUniversal Windows Platform Export Module
    Fusion 2.5 (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2009
    Posts
    330
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Centered full screen text

    Hello,

    Is there a way to centralize (horiz./vert.) A text (string) when the screen is full screen.

    Thank you

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)
    vSv's Avatar
    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    116
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    I did this today, but I don't know if my method is optimal. The text I needed to have in the exact center of the screen was for upgrades, where the same text string will be used to describe how upgrades in my game works whenever the player picks them up.

    How I did it:
    • Player touches upgrade
    Create new object: Create "HUD String Upgrade Description" at (0,0) Layer 12.
    HUD String Upgrade Description: Set X Position to X Left Frame.
    HUD String Upgrade Description: Set Y Position to Y Top Frame + 80.


    Notes:
    My "Hud String Upgrade Desciption" has a width of 426 which is exactly as wide as my game window. Also, the Horizonal Alignment of the string is set to Center under the string.
    The reason behind this is that it seems like a strings "hot spot" (real X Position) is in the strings upper left corner, and it's not being changed by changing the Alignment under properties.

    If you want to center it vertically, you can just set the Y position to the game windows height divided by 2.
    You could also make the strings height as high as the game windows height and then alter the Vertical Alignment to Center under properties.
    Come to think of it, the easiest way to do it would probably be to just check both the Horizontal and Vertical Alignment to Center and put the X/Y Position of the string to 0,0. Oh, and make both its width and height the same as the game windows width and height.

Similar Threads

  1. Position of Screen not centered
    By ximo in forum HTML5 Export Module 2.5
    Replies: 9
    Last Post: 20th June 2015, 01:44 PM
  2. Font blitter with centered text?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 1st September 2013, 01:27 PM
  3. Active System Box text NOT centered vertically
    By smart_fr in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 13th June 2012, 03:49 PM
  4. Active System Box text NOT centered vertically
    By smart_fr in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 13th June 2012, 03:47 PM
  5. Game does not fit into the screen in full screen
    By Pegasus_Seiya in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th August 2009, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •