This is a game maker script that creates an array which is then used to create instances of an object within a grid in a room.
Users can edit the array in order to build there own levels as well as add arguments to create instances of multiple objects in a room.
This allows for a simple way to generate levels without using the room editor. This also means that entire levels can just be stored in scripts and variables which enables the user to create multiple levels and level layouts without having to create multiple rooms and edit them in the room editor.
If you know exactly where you want each object in your room then this script will save you lots of time you would ordinarily spend in the room editor.
Being able to store your levels as variables and arrays also means that your project should be much neater and potentially in the long run reduce disk space.
Example project (including sprite, object, room and script) and detailed comments provided.