Turkish Coffee
Member
Hey,
I'm coding my own procedural generation and trying to make it get shaped depening on the width of the room. So, if I ever change the room_width, that won't affect the code.
Here is the code I use for creating ground objects;
Create Event of a Persistent Object called "oGame"
Do you think that type of generation would cause problems?
I'm coding my own procedural generation and trying to make it get shaped depening on the width of the room. So, if I ever change the room_width, that won't affect the code.
Here is the code I use for creating ground objects;
Create Event of a Persistent Object called "oGame"
Code:
addX = -16; // So it puts the first ground object where it needs to be. ( 0,0 sprite origin )
if (GroundisReady = 0) //This gets set to 1 if any of the ground objects get out of the room.
{
repeat(99999) // How can I make it repeat until GroundisReady variable is not equal to 1?
{
addX += 16;
instance_create(addX,160,oGroundTile);
}
}
Last edited: