I'm looking for a script that allows me to check whenever a position in the map is occupied by a solid (Through OFF) event.
My intent is to create a sliding puzzle where the pieces can move at all 4 directions, however, there are 1x2 and 2x1 pieces on the board, which makes collision checking super difficult to figure out, with the only option I've thought of being checking all of the pieces' Xs and Ys, which would be a coding nightmare to pull off.
In order to avoid such fate, I ask for a script that can condense it all to just checking if there's a solid event on the X, Y coordinate the piece wants to go, I believe this would be the easiest way to do this.
My intent is to create a sliding puzzle where the pieces can move at all 4 directions, however, there are 1x2 and 2x1 pieces on the board, which makes collision checking super difficult to figure out, with the only option I've thought of being checking all of the pieces' Xs and Ys, which would be a coding nightmare to pull off.
In order to avoid such fate, I ask for a script that can condense it all to just checking if there's a solid event on the X, Y coordinate the piece wants to go, I believe this would be the easiest way to do this.