Menu
Login
Language
DE EN FR ES IT CZ
Back

Drawing action text inside rectangle

  • #1, by ygmantell Monday, 31. August 2015, 15:12 11 years ago Quote
    When I am doing this, how do I know the coordinates of the rectangle. Is there a reason it isn't just a "select an object area" type of thing?

    Great Poster

    274 Posts

  • #2, by sebastian Monday, 31. August 2015, 16:00 11 years ago Quote
    you mean the properties inside the game settings, right? you have to set the coordinates related to your game resolution

    Thread Captain

    2346 Posts

  • #3, by ygmantell Monday, 31. August 2015, 16:02 11 years ago Quote
    I understand that. But how do I know what the coordinates are of the rectangular area that I want to put it in.
    Thanks

    Great Poster

    274 Posts

  • #4, by sebastian Monday, 31. August 2015, 18:13 11 years ago Quote
    you can use a scene which is as big as the game resolution and point with the mouse on a point The coordinates of that point are displayed in the upper right if the window

    Thread Captain

    2346 Posts

  • #5, by sebastian Monday, 31. August 2015, 18:14 11 years ago Quote
    you can use a scene which is as big as the game resolution and point with the mouse on a point inside the scene. The coordinates are displayed in the upper right of the window

    Thread Captain

    2346 Posts

  • #6, by ygmantell Monday, 31. August 2015, 18:17 11 years ago Quote
    And then I take 4 points of a rectangle and use those?

    Great Poster

    274 Posts

  • #7, by afrlme Monday, 31. August 2015, 21:44 11 years ago Quote
    The position of the rectangle / square is based on the top left pixel of said rect & then the width & height. Like so: x, y, width, height. You have to take into account that the position is based on the top left pixel so to center the box to a specific coordinate you would need to remove half the width value from the x position & same again with the height.

    Quick note: the position is based on the viewport (camera) & not the scene width / height.

    Imperator

    7290 Posts

  • #8, by sebastian Tuesday, 01. September 2015, 08:14 11 years ago Quote
    also the text inside this rectangle is centered.

    Thread Captain

    2346 Posts