Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
TileMap not able to set offset for tile - Gideros Forum

TileMap not able to set offset for tile

YanYan Member
If I want my tiles be larger than my cells, i cant set margin for tile, but only for whole layer.
vk.com/yan_alex
Tagged:

Comments

  • olegoleg Member

    In my Minesweeper game, tiles have a shadow, so I shift them like this:
    self.TileMap2 =  TileMap.new(x,y,Texture.new("img/pole22.png"),120,141,0,0,0,0,112,112)

    Likes: Yan, MoKaLux

    image.png
    514 x 290 - 40K
    my games:
    https://play.google.com/store/apps/developer?id=razorback456
    мій блог по гідерос https://simartinfo.blogspot.com
    Слава Україні!
    +1 -1 (+2 / -0 ) Share on Facebook
  • YanYan Member
    oleg said:


    In my Minesweeper game, tiles have a shadow, so I shift them like this:

    self.TileMap2 =  TileMap.new(x,y,Texture.new("img/pole22.png"),120,141,0,0,0,0,112,112)

    I moved whole tile layer at half of tile offset, but kinda creepy solve )
    vk.com/yan_alex
Sign In or Register to comment.