Tile based "digging" games

Get help using Construct 2

Post » Wed Sep 28, 2011 1:34 pm

Many of you have probably seen games like terraria for example where the terrain seems to be made up of tiles that you can dig out.

I was wondering what the theory behind the creation is?

Are the tiles little sprites that you spread all over the screen?

I'm gathering you wouldn't paint them by hand and that you would generate them some how? I guess this would involve setting an upper limit (so you have a horizon) and then getthing it to fill in the test with sprites and adding a random function somewhere to pick different types of sprites.

Is that sounding like a sane path to take?
Any options or examples welcome.
B
15
S
1
G
3
Posts: 47
Reputation: 1,912

Post » Wed Sep 28, 2011 4:17 pm

Would like to know this as well.
B
14
S
3
G
2
Posts: 37
Reputation: 1,893

Post » Wed Sep 28, 2011 4:35 pm

For a start of an answer check this post out
There are also other examples of tiling/grid in the "how do I" section, make sure to do a quick search if you need more.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Wed Sep 28, 2011 10:32 pm

I'm guessing the world is a huge array - you need to know how they work before undertaking a project like this.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Sep 29, 2011 12:13 am

Very nice so one method is to store the differing tile images as animations as use something like int(Random(0,Sprite.AnimationFrameCount)) to pick a random animation. That's cool. If you wanted to "tile" around something. E.g. bury a diamond in the dirt I guess you could overlap the diamond at a particular position on another layer then when you grab it you could destroy all the overlapping tiles so you have a hole where it was dug out?
B
15
S
1
G
3
Posts: 47
Reputation: 1,912

Post » Wed Jan 11, 2012 10:10 am

well, this is a old post but i think ppl still wanting to learn about ways to make building/block/digging kind games (including me), so i'v made a search on the internet and found this site here:

auto-tiling

and here:
Minor78 - Level Editor

that explain the basic behind auto tiling, but i'm still learning how to use things and i cant find a basic tutorial of how to make a level editor with construct. I hope this help and if you guys find some good basic tutorial of autotiling/level editor for platformer using Construct, pls let me know toovaldarko2012-01-11 10:20:59
B
48
S
5
G
6
Posts: 210
Reputation: 6,247

Post » Wed Jan 11, 2012 10:40 am

I also may add that for awesomely big world, you could use random seed.

The idea behind that is that all number returned by this kind of random() function would always take your seed number at a start and return every time the same numbers.
Because you might not now it but a random doesn't really exists in a computer world. Random() function are series. You take a starting number and then always apply the same operation to have the next pseudorandom number.
Well now that I've explained that for those who didn't know.
If you apply the same random operation for creating your big world, you can understand now that if you have the same serie of randome number you'll generate the same exact world.

Then basically you could store an entire world in one single number (and I believe it's how minecraft works). Then you just have to store what has been modified in this world. Which would be far less than the big world.
The only downside is that generating the world, if it's a really big one, could take some time.
But there's some ways to split your big world in tiny ones (that's the purpose of Arsonide's gridTree plugin for Construct Classic) to avoid this overhead (also minecraft might use something like that).

That's all (:Yann2012-01-11 10:41:06
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu Jan 19, 2012 2:51 am

some dude make a aproach with this kind of game here:
http://www.scirra.com/forum/planet-mogma_topic47579.html
B
48
S
5
G
6
Posts: 210
Reputation: 6,247

Post » Fri Nov 16, 2012 4:53 pm

Terraria you say..yes excellent game but Ummmm....
What about "Cortex Command"..Sheer Genius..A Brilliant Indy game... 11 years in the making...

The only way I can think how they did it was with an Procedurally generated Pixel Array of Truly EPIC Dimensions

well worth a look...if you can figure how they made that and give me that code ..I'll buy you a Lamborghini ....A phat red one



http://www.datarealms.com/games.php
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
29
S
11
G
8
Posts: 313
Reputation: 7,335

Post » Sat Aug 10, 2013 5:34 pm

Lol, i am actually working on a terraria based game. I didn't use array or some complex stuff. This is a picture from my project: http://i.imgur.com/CquvHk2.jpg The map is random "Erased" With ores randomly puttet underground. It's the easy way to make random maps, which also look's great. The map is different each time, and i even added fog beneath the ground, so you need to discover stuff to find stuff ;) http://i.imgur.com/1E7uiFQ.png
B
9
S
2
Posts: 41
Reputation: 1,756

Next

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go and 21 guests