All Posts in GameMaker Studio 2
![](https://s.gjcdn.net/assets/f6fdf465.png)
![](https://m.gjcdn.net/video-poster/900/33115323-436qtgep-v4.webp)
![Loading...](https://s.gjcdn.net/assets/76929a36.gif)
For day 505 of coding, I managed to alter the path making process to be based on the shortest distance to the starting room. This was done by calculating the hypotenuse using the x and y distances
![](https://m.gjcdn.net/video-poster/900/33090409-mgc5gntf-v4.webp)
![Loading...](https://s.gjcdn.net/assets/76929a36.gif)
For day 504 of coding, I've developed a prototype code for creating a path between rooms with room 0 and 1 as the test targets
![](https://m.gjcdn.net/video-poster/900/33063474-xgtqxjvt-v4.webp)
![Loading...](https://s.gjcdn.net/assets/76929a36.gif)
For day 503 of coding; in working to find a way to implement connecting hallways, I have made an array containing the roughly center point of each room. This array is used to assign numbers to each room
![](https://m.gjcdn.net/video-poster/900/33035567-hrv82rpr-v4.webp)
![Loading...](https://s.gjcdn.net/assets/76929a36.gif)
For day 502 of coding, I have allowed different sized rooms to be generated without overlapping each other. I just need to figure out how to connect them
![](https://m.gjcdn.net/video-poster/900/33013355-n9bbigau-v4.webp)
![Loading...](https://s.gjcdn.net/assets/76929a36.gif)
For day 501 of coding, the starting room spawns where the player's spawn point is located
![](https://m.gjcdn.net/video-poster/900/32987049-ykk9cgej-v4.webp)
![Loading...](https://s.gjcdn.net/assets/76929a36.gif)
For day 500 of coding, I started making steps to implement a system to randomly create rooms connected by hallways. So far, I have just made a function to create a 5x5 areas of floor that you can kind of see from the different maps
![](https://m.gjcdn.net/video-poster/900/32963940-imu7xzrz-v4.webp)
![Loading...](https://s.gjcdn.net/assets/76929a36.gif)
For day 499 of coding, I have altered how the player will spawn in the room to better prevent them from starting on walls. It will need to be worked on a bit more to ensure a guaranteed spot on the floor
![](https://m.gjcdn.net/video-poster/900/32909221-zpsjkvjf-v4.webp)
![Loading...](https://s.gjcdn.net/assets/76929a36.gif)
For day 497 of coding, I have updated the exit spawn so that the exit will spawn next to two walls. I may need to make further refinements later on
![](https://m.gjcdn.net/video-poster/900/32885956-r7g9pjg2-v4.webp)
![Loading...](https://s.gjcdn.net/assets/76929a36.gif)
For day 496 of coding, I am current attempting to have an exit placed randomly on level start. It does need some refinement so that it will always show up
![](https://m.gjcdn.net/video-poster/900/32861178-f9htbkwx-v4.webp)
![Loading...](https://s.gjcdn.net/assets/76929a36.gif)
For day 495 of coding, I have refined the code provided from Heartbeast's tutorial to have the player spawn in an open area. Still needs some adjustments, but the spawning has greatly improved