• Advertisement
Sign in to follow this  

Tile types blending with other tile types

This topic is 1906 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is probably a simple question, I really just want to achieve what Terraria and other 2D tile based games have done:
[img]http://www.xanather.com/terrariaexample.png[/img]
I have been thinking of ways on how to implement such a thing, but it seems like it would just be to create a sprite sheet for each tile and in each sprite sheet have all compatible tile type blends associated with that tile. And then hard code all that in (which all that would take a long time).

I had a hard time explaining that, anyway I hope you know what I mean. Is there any other easier way? Either way what suggestions would you make in implementing such a thing?

Share this post


Link to post
Share on other sites
Advertisement
Someone posted a link to a project that explained how they did this, and it was partially automated. Basically, as you lay down your tiles in your editor, when 2 different tiles are side-by-side, it will blend the 2 adjacent tiles automatically with pre-defined tile.

I'm sorry I don't have the link, but hopefully someone here will. It was a nice article.

Share this post


Link to post
Share on other sites
Ahh so a blending tile was placed in between the two compatible tiles? That sounds like a good idea. But what if the two tiles originally had more than one representation? How would that blending tile placed in between the two tiles be correct?

Id love to read that article, I will go searching around for it. Can you remember which website it was on?

Thanks, Xanather.

Share this post


Link to post
Share on other sites
[quote name='Xanather' timestamp='1351780500' post='4996196']
Ahh so a blending tile was placed in between the two compatible tiles? That sounds like a good idea. But what if the two tiles originally had more than one representation? How would that blending tile placed in between the two tiles be correct?

Id love to read that article, I will go searching around for it. Can you remember which website it was on?

Thanks, Xanather.
[/quote]

Xanther, there wasn't a new tile place between them, it basically modified the old adjacent tile, and the new tile being placed so both tiles were modified so the edges of them blended with the other tile.

Picture laying down a grass tile to the right of a dirt tile. When the grass tile is places, the dirt tile is automatically changed so the right side of it has a little grass on it, and the left tile of the grass tile has a little dirt in it, but it's looks like dirt fades to grass.

It was in a post on this forum that someone linked it, but I don't recall where the article was hosted. It may have actually been hosted on gamedev. Good luck finding it.

Share this post


Link to post
Share on other sites
[quote name='kseh' timestamp='1351796472' post='4996274']
[url="http://www.gamedev.net/page/resources/_/technical/game-programming/tilemap-based-game-techniques-handling-terrai-r934"]This[/url] may be the article that BeerNutts was referring to. I recently found it helpful to get tile transitions working in my own project.
[/quote]

Yes, that's it. Thanks Kseh

Share this post


Link to post
Share on other sites
[quote name='kseh' timestamp='1351796472' post='4996274']
[url="http://www.gamedev.net/page/resources/_/technical/game-programming/tilemap-based-game-techniques-handling-terrai-r934"]This[/url] may be the article that BeerNutts was referring to. I recently found it helpful to get tile transitions working in my own project.
[/quote]
Cool, thanks.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement