Text Handels

This topic contains 0 replies, has 1 voice, and was last updated by  TomToad 1 year, 7 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10468

    TomToad
    Participant

    One difficult aspect of designing a game is proper placement of your text. Usually placement is done with a series of trial and error, or complex math to find relative positioning on the screen. Sometimes changing resolution or changing fonts can mess with our carefully positioned text.

    Monkey2 gives us the ability to define handles in the text for better placement. By using reference points and adjusting the handle, we can automatically position our text with greater ease. There is no need to calculate the text size as the handle uses values of 0.0 for left, 1.0 for right, and values in-between, regardless of text length.

    Below is 25 examples of text placement, showing the usage of handles, as well as the flexibility they contain.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.