Hi, everybody.
Im making an infinite runner and I would like to listen to ideas by the big brains here about what do you think would be the best approach for randomly choosing from a prefab pool of modules to build the level.
I managed to use the new Templates+Hierarchy tools that Construct currently offers to call those prefabs no problem, BUT I don't know yet how to make a system ("""algorithm""") to tell Construct that I don't want two instances of "Module_Hazard" next to eachother. Much less so more than 3!
I thought about making an array and writing there each module class as a string and trying to figure out a way for the engine to be able to "know" which module is next to eachother.
Here's a capx I made reducing my game to the basics that I want you to help me with. The module generator is in here but no algorithm to control its wacky randomness.
https://drive.google.com/file/d/1mF9_ndZ8UvONgpe7v0-vlP3nc_b0dEJk/view?usp=sharing
For example, I would want to make it in a way that no two fire1 modules can be generated next to each other as you will find out in the Test
Cheers