How do I create an auto generated map?

Get help using Construct 2

Post » Mon Apr 14, 2014 2:53 am

I wish to make a games that the background of the game randomly generate, example random generated map, or random generated level. So, after think in depth, it's something like Sokoban or Pipedream (80's game :roll: )

So very appreciate if some sifu here... can roughly/briefly tell me the idea how to setup the background. Thanks you so much.

* Add *
example my tile size is 1x1, and I am putting 100 x 1 x 1 of tile in my display.
I need to set for each of level/map, the Object A will auto set in certain tile randomly, not all....

Yeah, I think this is the best i can explain. hope someone can enlighten me. Thanks
Last edited by simworld on Mon Apr 14, 2014 4:58 am, edited 1 time in total.
B
8
S
1
G
1
Posts: 26
Reputation: 638

Post » Mon Apr 14, 2014 3:09 am

Search for "tile map creation". You should find a basic project somewhere.
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Mon Apr 14, 2014 4:55 am

xeed wrote:Search for "tile map creation". You should find a basic project somewhere.


Hi Xeed, Thanks for your reply.

However, I think it's not what I looking. Maybe need more explaination in my post. How to insert tile is not an issue...
B
8
S
1
G
1
Posts: 26
Reputation: 638

Post » Mon Apr 14, 2014 5:30 am

Actually you can'T explain creating how to randomly generate a map in short time.

First it depends how complex your world is. You need to make sure that your map is "valid".
For example when you have a 2D map of an world full of islands:

You need to ask whether a tile is part of the shore, is in the middle of the sea or land.
When you randomize everything, the computer still makes some crazy thinks like supertiny islands or islands with a very stupid shape. So you have to tell your computer the maximum/minimum size of an island.

And then you decide you also want rivers in your world of islands, which will be even more complicated.

So I think it's impossible to tell you how to do it. But I wouldnt do it with c2 but with a plugin.
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Mon Apr 14, 2014 6:32 am

Vuuv wrote:Actually you can'T explain creating how to randomly generate a map in short time.

First it depends how complex your world is. You need to make sure that your map is "valid".
For example when you have a 2D map of an world full of islands:

You need to ask whether a tile is part of the shore, is in the middle of the sea or land.
When you randomize everything, the computer still makes some crazy thinks like supertiny islands or islands with a very stupid shape. So you have to tell your computer the maximum/minimum size of an island.

And then you decide you also want rivers in your world of islands, which will be even more complicated.

So I think it's impossible to tell you how to do it. But I wouldnt do it with c2 but with a plugin.


Thanks for your information, I got the clue from you. BTW, which plugin is able to provide such a request?
B
8
S
1
G
1
Posts: 26
Reputation: 638

Post » Mon Apr 14, 2014 6:38 am

There's no plugin like that, cause there are different requirements for every randomly generated content. I suggest you try to write your own plugin :)
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Mon Apr 14, 2014 11:05 am

Vuuv wrote:There's no plugin like that, cause there are different requirements for every randomly generated content. I suggest you try to write your own plugin :)


erm...well, i am newbies
B
8
S
1
G
1
Posts: 26
Reputation: 638

Post » Mon Apr 14, 2014 11:09 am

A randomly generated map isnt that easy to make for a newbie. But not impossible :)
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Mon Apr 14, 2014 12:30 pm

I was thinking this way, is that possible to make it, hope you guys tell me:

The map i divided into probably 9 blocks
each block has set of object example it might be sea, island, big island, oasis
So everytime a new level start, it randomly select from the class of object....
mean probably i need to create 9 set of classes which is a set of possble objects to be randomly pick

since 9 block x 9 classes with diff object, the random map can be a lot.....
B
8
S
1
G
1
Posts: 26
Reputation: 638

Post » Tue Apr 15, 2014 5:24 am

Yes it's possible.
Its even quite easy to pick different sets.
It's just hard to place them in a way in makes sense.
B
14
S
3
G
1
Posts: 255
Reputation: 2,027


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 52 guests