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

Android Weird pieces of sprites repeated around screen

Discussion in 'GameMaker Studio 2 Community Tech Support' started by franking64, Jul 28, 2019.

  1. franking64

    franking64 Member

    Joined:
    Nov 10, 2016
    Posts:
    12
    hi
    My game is aimed for Android. I have checked "keep aspect ratio" to have a padding (black bars) around the screen to compensate for issues with different display sizes. It works pretty well on several devices with various sizes.

    However on Samsung galaxy a9, a strange problem happens. some pieces of sprites are showing repeatedly on either right or left padding of the screen.
    [ look at the spoiled pic of the screenshot of the game to best understand the issue.]

    Do you know what is the issue? How can I solve it?
     

    Attached Files:

    • rt.jpg
      rt.jpg
      File size:
      115.8 KB
      Views:
      21
  2. Ouroboros

    Ouroboros Member

    Joined:
    Jul 23, 2016
    Posts:
    12
    You tried to enable "Clear Viewport Background" in room?
     
  3. franking64

    franking64 Member

    Joined:
    Nov 10, 2016
    Posts:
    12
    yeah, I have checked "Clear Background with Window Color" in all rooms. However maybe you should know that I have no background color at all. Instead I have used background images.

    this problem only occurs on some special screen sizes, specially those with long width.I searched a lot and nobody seemed to have the same problem. Finally I had to draw two black rectangles on both sides of screen in GUI layer. Doing so solved the problem. But it forces an extra load on the burden of the game 60 times in a second in all the rooms. I wish I could find some other way.:(
     
  4. Ouroboros

    Ouroboros Member

    Joined:
    Jul 23, 2016
    Posts:
    12
    You use surface_resize? you can try use draw_clear_alpha.
     

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