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 :/
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.