[Solved] How do I filter tilemaps

Get help using Construct 2

Post » Tue Jun 27, 2017 11:54 am

I'm trying to make a filter that adds corners and slopes to a generated tilemap.
Like this:
Image

Anyone know how to do this without this?
Image
Or this?
Image

I'm guessing the solution is super simple, I just can't seem to figure it out.
Edit: currently looking into using a dictionary to fill out the list of rules and then apply them automatically


Solved:
http://imgur.com/a/95vej

Summary
Dictionary stores strings of four numbers, (can be more complex, but for the sake of not sitting here for 5 hours making the rules) one for each direction, up down left right. Then it checks which sides have different tiles, and loads them into a string. That string determines the tile sprite to display.
Then I have a quick mechanic for dynamically setting/erasing tiles.
Image
B
42
S
14
G
3
Posts: 165
Reputation: 5,115

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests