Hello Guest

Author Topic: Edged Tilemap, select order?  (Read 4995 times)

blueskined

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 11
    • View Profile
Edged Tilemap, select order?
« on: February 13, 2013, 12:57:16 pm »
Hello:
got a question:
I am trying to paint a edged tile map.
I made 9 squres, each of them 32* 32 px.
everything I followed the tut, all working well besides the edged tilemap I paint is a mess! seems the order are messed up~
but the doc didn't mention the selection order I should follow, I tried different ways but so far I haven't been successfully painted a edged tile yet.
say if the 9 square texture are:
1 2 3
4 5 6
7 8 9

so, what order I should select them to make this work?
thanks for any input.
BS.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Edged Tilemap, select order?
« Reply #1 on: February 13, 2013, 01:25:32 pm »
If you have them arranged correctly in your palette, you can drag-select 9 square tiles.
Or if they're not sorted correctly in your palette to do this, paint the 9 tiles into your scene somewhere as a square, as you've drawn above, and then alt-click-drag to pick up the square from your scene. It will then paint in edged mode.

There is an undocumented way to save and load brush presets which could help here. Open up tk2dTileMapEditor.cs, and insert the following first line in the file:

#define TK2D_TILEMAP_EXPERIMENTAL

This should be the very first line before anything else. Once that is done, you'll get "Load" and "Save" buttons - you should be able to load and save brush presets now.

blueskined

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Edged Tilemap, select order?
« Reply #2 on: February 13, 2013, 01:44:45 pm »
Thanks for your replay.
It might be some setting difference?
I am using mac, and when I click alt + click, the mouse icon turned into a eye, which is a scene navigator to rotate the view...
what should i do!?

blueskined

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Edged Tilemap, select order?
« Reply #3 on: February 13, 2013, 01:48:04 pm »
Oh I figured it out
it should be the control key!
now it's working like charm!

the save & load is working nicely too!
cool~
thanx!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Edged Tilemap, select order?
« Reply #4 on: February 13, 2013, 01:52:30 pm »
I updated the docs about the mac keys, but never actually uploaded it :(

Glad you figured it out.
« Last Edit: February 13, 2013, 01:55:16 pm by unikron »