1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

Windows Quick question about view rotation [RESOLVED]

Discussion in 'Legacy GameMaker Community Tech Support' started by DariusWolfe, May 16, 2017.

  1. DariusWolfe

    DariusWolfe Member

    Sep 23, 2016
    I'm working on having different views on the screen, and I finally figured out why it was cropping off parts of the image when the view was rotated. Once I finally had that working, I found that the rotated port showed the image with minor but noticeable distortions, despite it being 1:1 sizing, and a 90-degree rotation.

    Here is the code (currently in room creation) for the views:

    global.dispH = display_get_height()
    global.dispW = display_get_width()

    view_hport[0] = global.dispH
    view_hview[0] = global.dispH

    view_wport[0] = global.dispW
    view_wview[0] = global.dispW
    view_visible[0] = true

    view_xview[1] +=28
    view_yview[1] -=28
    view_angle[1] = 90

    view_visible[1] = true

    Using GMS 1.4. Interpolate colors between pixels is turned off.

    An image to illustrate the problem.

    I'm sure this is something reasonably simple, but a previous Google search didn't help, so I'm hoping someone here might be able to tell me what I'm doing wrong.

    Edit: It turns out that the distortion happens even without the 90-degree angle. Below are my settings for view[1]


    Final Edit: Got help for the issue over on Reddit. The fix was to add:


    before the view settings.

    Last edited: May 16, 2017

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice