Is it worth it to make a built in tile editor?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
scissors61
Citizen
Posts: 68
Joined: Fri Jan 08, 2016 10:16 am

Re: Is it worth it to make a built in tile editor?

Post by scissors61 » Wed Mar 08, 2017 12:45 am

@Zorg @Jasoco. I can imagine how it works. It looks very easy, definetly going to use it. Thanks.

I remember using inkscape to grab the position of some patterns I created with inkscape's grid and align tools. Then I exported them to tiled to then make an object in each figure of the pattern. If I knew better back then.

User avatar
DanielPower
Prole
Posts: 39
Joined: Wed Apr 29, 2015 5:28 pm

Re: Is it worth it to make a built in tile editor?

Post by DanielPower » Tue Mar 14, 2017 6:45 pm

Creating your own tile editor will certainly be a learning experience, but also takes quite a bit of time and knowledge. My personal recommendation is to use something like Tiled, which is quite powerful and exports to a Lua file that you can load with STI, or by writing your own map loader.

Only write your own tile editor if:
A) You want to do it for the learning experience, or for fun.
B) You want to have the tile editor run inside your game engine for live editing and faster testing.
C) You want to have the editor built-in / more user-friendly / more attractive, so that your players will more easily be able to build maps.

For the majority of cases, I'd just recommend Tiled. But if you're willing to put the time and effort in, you can do some interesting things with your own editor.

MasterLee
Prole
Posts: 38
Joined: Tue Mar 07, 2017 4:03 pm

Re: Is it worth it to make a built in tile editor?

Post by MasterLee » Tue Mar 14, 2017 7:02 pm

DanielPower wrote:
Tue Mar 14, 2017 6:45 pm
For the majority of cases, I'd just recommend Tiled. But if you're willing to put the time and effort in, you can do some interesting things with your own editor.
Or it is use full when you map format is not supported by tiled. Using for example double indexed color tables (one index in map one in actual tile data) instead of direct color tables seems to be not possible in tiled.

User avatar
zorg
Party member
Posts: 1475
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Is it worth it to make a built in tile editor?

Post by zorg » Tue Mar 14, 2017 8:46 pm

MasterLee wrote:
Tue Mar 14, 2017 7:02 pm
DanielPower wrote:
Tue Mar 14, 2017 6:45 pm
For the majority of cases, I'd just recommend Tiled. But if you're willing to put the time and effort in, you can do some interesting things with your own editor.
Or it is use full when you map format is not supported by tiled. Using for example double indexed color tables (one index in map one in actual tile data) instead of direct color tables seems to be not possible in tiled.
It indeed may be useful. :3
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

User avatar
fyregryph
Prole
Posts: 9
Joined: Fri Oct 28, 2016 5:51 pm

Re: Is it worth it to make a built in tile editor?

Post by fyregryph » Mon Mar 20, 2017 9:57 pm

I think this is an example of when a custom editor would be applicable, I made a (really bare bones) test of cutting each tile into 4 corners and choosing which ones to use based on their neighbors to get the right transitions. I think Tiled might actually do something similar for terrain, but I don't think you can do weird things like subtiles with it.

MrFariator
Prole
Posts: 37
Joined: Wed Oct 05, 2016 11:53 am

Re: Is it worth it to make a built in tile editor?

Post by MrFariator » Mon Mar 20, 2017 11:27 pm

Typically for something like that you'd only store what the tile is supposed to be (dirt, grass, etc), and then at run time split the tile into four chunks to get the tiling right. So you'd use some sort of a "magic/master" tile in Tiled, which your game then automatically auto tiles based on surroundings.

I happen to be implementing this four-way split feature, too.
-- Run once in a blue moon
if math.random() > 0.99 then
  local account = Twitter:getProfile ( https://twitter.com/MrFariator )
  account:post ( currentProgress:getGIF() )
end

User avatar
fyregryph
Prole
Posts: 9
Joined: Fri Oct 28, 2016 5:51 pm

Re: Is it worth it to make a built in tile editor?

Post by fyregryph » Tue Mar 21, 2017 2:55 am

Yeah, I remember thinking that magic tile sort of approach might be a lot easier now that you mention it. Maybe I'm looking for an excuse to make some sort of little editor :p
I happen to be implementing this four-way split feature, too.
Oh cool! I'm actually thinking along the lines of making a common interface for handling tiles, and having a bunch of different types that it can use, so that whatever format you feel like making when drawing (or you can just splice other assets in) and just making that a library.

Post Reply

Who is online

Users browsing this forum: Lucyy and 5 guests