Hello Guest

Author Topic: tk2dcamera cant align at tilemap  (Read 2915 times)

guawoo

  • Newbie
  • *
  • Posts: 1
    • View Profile
tk2dcamera cant align at tilemap
« on: November 07, 2013, 04:35:39 am »
the tk2dcamera cant align at tilemap, they are position cant coincide. I make sure they are origin is bottom left and make sure
tile pad method is extend,but in the game tab , tiles have a half part cant see at bottom


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2dcamera cant align at tilemap
« Reply #1 on: November 07, 2013, 10:12:44 am »
The tk2dCamera aligns coordinates not anything specific. In this case your tilemap sprite collection has origin set to centre, so the tile map 0,0,0 is the centre of the first sprite. If you want to fit the bottom left to 0,0,0 you will need to set that up in the sprite collection - select everything, set anchor to bottom left, click Apply and then Commit. Your tile map should now fit in the camera.