Question - Code repeat edge pixels

Discussion in 'GameMaker Studio 2 Community Tech Support' started by bdonohue, Apr 17, 2019 at 4:56 PM.

  1. bdonohue

    bdonohue Member

    Joined:
    Oct 25, 2016
    Posts:
    16
    Hi folks!

    Is there a way (via code or IDE) to automatically repeat the edge pixels in a sprite that I've placed on the screen? I know you can tile the image horiz and vert, but that's not what I'm looking for. The only thing I can think of is making a really large sprite that covers the entire screen area, but I'm guessing that would be bad.


    Thanks!
     
  2. Mick

    Mick Member

    Joined:
    Jun 30, 2016
    Posts:
    699
    A shader would be ideal for that I guess, can't help you with how to write the shader though, I'm no expert. :)
     

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