Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Drawing action text inside rectangle

  • #1, by ygmantell 11 years ago Zitieren
    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?
  • #2, by sebastian 11 years ago Zitieren
    you mean the properties inside the game settings, right? you have to set the coordinates related to your game resolution
  • #3, by ygmantell 11 years ago Zitieren
    I understand that. But how do I know what the coordinates are of the rectangular area that I want to put it in.
    Thanks
  • #4, by sebastian 11 years ago Zitieren
    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
  • #5, by sebastian 11 years ago Zitieren
    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
  • #6, by ygmantell 11 years ago Zitieren
    And then I take 4 points of a rectangle and use those?
  • #7, by afrlme 11 years ago Zitieren
    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.
  • #8, by sebastian 11 years ago Zitieren
    also the text inside this rectangle is centered.