Better Random Terrain via Midpoint Displacement

Show us your completed creations made in Construct 2

Post » Sat Aug 03, 2013 7:23 am

How can I make a tree generator for this?

Its just an example, I would need to use some similar code to spawn trees, chests, mobs, and so on,
so if I want, for example, that 1 on 50 blocks (top block) got a tree,
how can I code that?

I thought it would be easy as it has a grass generator for the top blocks,
but after an hour trying I couldn't do it :/
B
6
Posts: 67
Reputation: 486

Post » Fri Aug 16, 2013 4:13 pm

[QUOTE=RookieDev]

I would love to see the example of only having a set amount of tiles in your game window at once.If this is possible i could do things i never thought possible with construct 2. Im making a terraria/Minecraft style of sandbox game.[/QUOTE]

Sorry for keeping you waiting @RookieDev, haven't been active recently due to life.
I'll be looking at the example trying to improve it, this will be an implementation for sure.

[QUOTE=martinx09] How can I make a tree generator for this?

Its just an example, I would need to use some similar code to spawn trees, chests, mobs, and so on,
so if I want, for example, that 1 on 50 blocks (top block) got a tree,
how can I code that?

I thought it would be easy as it has a grass generator for the top blocks,
but after an hour trying I couldn't do it :/
[/QUOTE]

I'll work on getting this in too, @martinx09. You could pick an X column, then scan down the Y until you found a solid. Hopefully it'll be a pain-free process, but we'll see.

I'm going to try to make it generate into a non-power of 2 length for more control over level generation. Hopefully it'll be done soon, I'll try to get it finished it over the weekend.
B
12
S
2
G
4
Posts: 44
Reputation: 2,389

Post » Thu Oct 24, 2013 3:38 pm

@Intrepid I just wanted to check with you and see if you have made an new updates?

Thanks for all the work on this! Great example!
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Post » Sun Jan 19, 2014 9:26 pm

@Venivididormi

Can you please Post the .RAR file again? It would be really really appreciated....
B
5
Posts: 8
Reputation: 318

Post » Sun Feb 09, 2014 2:21 am

@NNGS

Unfortunately i've given up on this project. It works very well codewise, and I learned a lot, but the construct 2 engine is just too slow for this to work at any reasonable scale. When I have a small world, it runs fine. When you add enough blocks for the world to actually be interesting, or add any AI capable of platforming, it just bogs down. I also get horrible frame rate burps from garbage collection at random times.

To do a project like this in a reasonable scale and framerate, you'd need a non-interpreted language like C++. This engine just isn't optimized enough to handle thousands of blocks (even when using systems to turn off blocks when far away etc). Sorry to disappoint, and trust me, i'm bummed about it myself after all the time spent. I was hoping this engine would be more robust, but it really is only useful for simple mobile games, or simple 2d platformer games on pc. Venivididormi2014-02-09 02:24:58
B
8
S
2
Posts: 63
Reputation: 1,223

Post » Mon Feb 10, 2014 1:05 am

Yeah unfortunately i have been experiencing some of the same problems while trying to figure out a way to get something on that scale running smooth!


Do you know much about Game Maker, MMF or anything else like construct? or would my best bet just to goahead and learn C++ Now?
B
5
Posts: 8
Reputation: 318

Post » Mon Feb 10, 2014 2:06 am

Have you tried with the Tilemap plug?
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Mon May 04, 2015 12:43 am

I like to know how do I it adds more blocks, and how I do, for example to add blocks of stone and coal. Same as Terrarian.
B
6
Posts: 20
Reputation: 314

Post » Thu May 07, 2015 8:53 pm

I get 13 FPS on a computer I edit video on, anyone else get a low FPS?
B
5
Posts: 38
Reputation: 309

Post » Fri May 15, 2015 8:31 pm

Solutions????
B
6
Posts: 20
Reputation: 314

PreviousNext

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 5 guests