GML Rotate,Flip,Shift Ds Grid or 2d Array

Discussion in 'Programming' started by 2d_warrior, Feb 13, 2019.

  1. 2d_warrior

    2d_warrior Member

    Jul 14, 2016
    How do you rotate (90 degree increments) or flip (xflip, yflip) the contents of a ds grid or 2d array without manually rewriting the whole thing? I might also need to x shift and y shift the contents afterward as well.
  2. Bayesian

    Bayesian Member

    Sep 13, 2016
    Arrays don't have any advanced functions and as you can see in the documentation this is not built in for grids so it must be done manually which isn't too hard.

    edit: the only thing I found that's already made was a mirror script

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