Issues in centering a picture.

● ARCHIVED · READ-ONLY
Started by Rydiahighwind 7 posts View original ↗
  1. I'm trying to insert some pictures I doodled in my game for cutscenes purposes but somehow I cannot get them centered no matters what. I made them 544 x 416 pixels wide as I've been told and the whole point would be having them as background while the characters keep talking and text boxes pop up... but I just keep failing. And I do feel like an idiot because it should be the easies thing in the universe! I kind of remade a super short version of the event here in my side-practice game for things that give me issues.

    tumblr_inline_pg1akjEZbA1vo4rtj_1280.png
    tumblr_inline_pg1b3mVyvA1vo4rtj_1280.png
    It SHOULD be centered but-
    .tumblr_inline_pg1amu4HV71vo4rtj_1280.png
    It's just up there in the side. And, yes, the picture in there is random AF and from the youtube video I was currently watching but it is a png saved with the same pixel size as I mentioned above.
  2. It's because your coordinates are set at 0, 0.

    For a 544x416 picture, set them at half of each one:
    X=272
    Y=208
  3. Thank you so SO much, I can't believe the solution was so easy!
  4. "center" in that case means center origin.... the center of the picture
    it's badly arranged in the editor, the origin box should be separate for better understanding.
  5. Alternative you can leave it 0, 0 and instead of center use left
  6. @OnslaughtSupply It would work if you only want to display the picture, but if you need to change the zoom or rotate it, the result will be different.
  7. That wasn't in the issue, just throwing out some info