-
A directional wiggle
I am trying to wiggle a layer but I only want the wiggle to move the layer on a diagonal (if it were a map I’d only want it to move from the SW to NW diagonal). I believe that would tranlate to only +Y and +X wiggles or -Y and -X wiggles. What I never want it to do is go in a -Y/+X direction or a +Y/-X direction. So this slash: “/” is the diagonal I’d like it to move along. Do I use the Math.abs function for this?