A short tutorial that teaches you how to convert a position in an array to a position in a grid and a position in a grid to a position in an array in GameMaker Studio 2.3 (and prior versions).
Support me on Patreon!
/ samspadegamedev
Outline
0:00 Where can you use this?
0:24 Array Position to Grid Position
2:00 Grid Position to Array Position
2:47 Code Example
#GameMaker
#TinyProgrammingPatterns
#GML