FluffyGote
Member
Hi all! I'm relatively new to working with GMS2 and am running into an issue figuring out how to code a project I'm working on for my game design course.
I'm working on an endless runner 2D platformer game, and want to have a setup where a randomly chosen pre-designed "chunk" of level all generates at once when the player gets close enough to the edge of the "generated" part of the level (although I might have this work in reverse, where the level moves and the player remains stationary to simulate movement).
Only issue, I have no idea how to go about doing this. What would be the easiest (and quickest) way to design this. I've considered having each chunk layout's information stored in a 2D array, but going through and individually assigning each wall and enemy to a value for each layout would take far longer than I have to get this done. I also considered having each layout be it's own entire object, but I wouldn't be able to have things like obstacles and enemies this way.
Any brainstorming help would be amazing!
I'm working on an endless runner 2D platformer game, and want to have a setup where a randomly chosen pre-designed "chunk" of level all generates at once when the player gets close enough to the edge of the "generated" part of the level (although I might have this work in reverse, where the level moves and the player remains stationary to simulate movement).
Only issue, I have no idea how to go about doing this. What would be the easiest (and quickest) way to design this. I've considered having each chunk layout's information stored in a 2D array, but going through and individually assigning each wall and enemy to a value for each layout would take far longer than I have to get this done. I also considered having each layout be it's own entire object, but I wouldn't be able to have things like obstacles and enemies this way.
Any brainstorming help would be amazing!