2D Terrain Generation

Just started using Construct 2? Post your questions here

Post » Sat Jul 26, 2014 7:55 pm

I'll make this short and sweet so I'm not wasting anyone's time.

I am aware that terrain generation is likely more advanced a task than I should be taking on but I'm making a game that uses it and all the other features are pretty much implemented.
Is there code somewhere I can use to get me started in designing my generation?

I really should be more specific on what I'm trying to accomplish:

    Finite terrain generation. (I think I can figure out dimensions for map sizes but if you have ideas I'd love to hear them)
    A way to generate certain tiles at certain levels. (An example would be grass on the top level and then further down stone and coal etc.)
    Objects like buildings, trees, npcs, dungeons. How would I integrate them into the generation?
B
3
Posts: 6
Reputation: 175

Post » Sat Jul 26, 2014 8:01 pm

Fundamentally you're going to want to learn about arrays:

Manual entry: https://www.scirra.com/manual/108/array
Tutorial: https://www.scirra.com/tutorials/307/ar ... -beginners

The following examples refer to terrain generation:
viewtopic.php?t=64814&start=0
viewtopic.php?t=77415&start=0#377357
B
59
S
21
G
9
Posts: 641
Reputation: 9,787

Post » Sat Jul 26, 2014 8:05 pm

Thank you very much. That's great!
B
3
Posts: 6
Reputation: 175


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest