Sprite Flickers When Rotated

Discussion in 'Programming' started by JoeHoratio, Jul 21, 2019.

  1. JoeHoratio

    JoeHoratio Member

    Joined:
    May 30, 2017
    Posts:
    3
    Hi all,

    Very novice question here I suspect... I've been tinkering with a top down space shooter and I'm having issues with with the sprite drawing. The ship keeps a steady speed and I'm using left and right to adjust direction and rotate the sprite via 'image_angle'. The problem is that when the sprite is rotated to face certain directions, it doesn't draw smoothly, it seems to flicker and distorted lines appear. The effect seems to be markedly worse when I'm using a moving camera/viewpoint where the object almost looks as though it is shaking. The problem doesn't occur when the ship is stationary, only when moving.

    I thought it might be something to do with having the code in the step event... constantly adjusting the angle causing the flickering but it doesn't seem to be the case. I've also tried it without the camera follow but no luck...

    Can you help a guy out here?

    Thanks
     
  2. Annoyed Grunt

    Annoyed Grunt Member

    Joined:
    Jun 20, 2016
    Posts:
    136
    Graphical artifacts such as these are usually the cause of viewport problems. Are you running the game in windowed? Full screen? What view size? What viewport resolution?
     
  3. JoeHoratio

    JoeHoratio Member

    Joined:
    May 30, 2017
    Posts:
    3
    I'm running in a 1920x1080 window which is the same size as the room, viewports currently turned off.
     
  4. Annoyed Grunt

    Annoyed Grunt Member

    Joined:
    Jun 20, 2016
    Posts:
    136
    How large is your screen?
     

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