Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[GM] Infinite terrain generator


Vus
 Share

Recommended Posts

Hey everyone,

I need a little help from someone who is skilled in GML. Yea, I know, game maker blah blah.. but I am no coder, so its easy for me to use. Anyways, I want to create small game that involves randomly generated terrain. I have code for it mostly done, thing is however, that its generating terrain sideways and not in direction down. And I need someone who would be able to fix this.

Thanks for your time,

Vus
Link to comment
Share on other sites

[http://www.youtube.com/watch?v=BluBl_O0BKY](http://www.youtube.com/watch?v=BluBl_O0BKY)

[http://www.youtube.com/watch?v=ERR3u4GhKMg](http://www.youtube.com/watch?v=ERR3u4GhKMg)

[http://www.youtube.com/watch?v=uxwfeJGTs1w](http://www.youtube.com/watch?v=uxwfeJGTs1w)

[http://www.youtube.com/watch?v=x2ds2K7K8OY](http://www.youtube.com/watch?v=x2ds2K7K8OY)

[http://www.youtube.com/watch?v=HcjA87rV_V8](http://www.youtube.com/watch?v=HcjA87rV_V8)

Do you want something like this?
Link to comment
Share on other sites

> There is no such thing as generating infinitely down, even in Minecraft. There are always limits.

Limit in current PC version is your PC specs. Code allows for infinite generation as long as your computer keeps up. I want to do this only in direction down and I don't expect anyone to get so far that your computer can't keep up anymore. Minecraft is limited in height 0 with bedrock, but I want exact opposite. Be finite in sides, but not in height.
Link to comment
Share on other sites

I found an obvious  problem, to be able to generate infinite terrain down, the room size would have to be infinite as well, question is how can you make the room size infinite?  :( You could make it really long though but remember that the CPU has to load everything which is why there is a long pause before you start the game so that the game can generate terrain. There is code to generate only whats viewed at a time on the screen but this doesn't solve for infinite terrain building. I'll try to see what I can do.

-Scott (Orb)
Link to comment
Share on other sites

> I found an obvious  problem, to be able to generate infinite terrain down, the room size would have to be infinite as well, question is how can you make the room size infinite?  :( You could make it really long though but remember that the CPU has to load everything which is why there is a long pause before you start the game so that the game can generate terrain. There is code to generate only whats viewed at a time on the screen but this doesn't solve for infinite terrain building. I'll try to see what I can do.
>
>  
>
> -Scott (Orb)

Not sure if it would work but here's a thought, instead of having the room size infinite, just make it grow when the player moves close to the edge of the current room? (It'd be a nightmare to load once you have a massive room though, so maybe have it save and load as "chunks" like Minecraft or something similar.)
Link to comment
Share on other sites

> Not sure if it would work but here's a thought, instead of having the room size infinite, just make it grow when the player moves close to the edge of the current room? (It'd be a nightmare to load once you have a massive room though, so maybe have it save and load as "chunks" like Minecraft or something similar.)

Yea exactly what I had in mind. Well, this game won't have save and load feature because it would be useless for it, so that doesnt need to be solved. :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...