makotok / Hanappe

Hanappe is a game framework for MOAI SDK.
Other
107 stars 41 forks source link

TileObject visibility bug in Flower #68

Closed Quedex closed 11 years ago

Quedex commented 11 years ago

I added an object to my map, using the example you posted on the MOAI forum:

local objectGroup = tileMap:findMapLayerByName("Object")
local object = objectGroup:createObject({
          name = "Enemy",
          type = "Actor",
          shape = "rectangle",
          x = 192,
          y = 448,
          width = 0,
          height = 0,
          gid = 538,
          visible = true,
          properties = {
            ["playAnim"] = "walkDown"
          }
        })

However, setting visible = false has no effect. The object still shows up on the map. A bug?

makotok commented 11 years ago

Thank you. Is a bug. I fix soon.

makotok commented 11 years ago

Fixed. Incidentally, if you use the latest build, change to inherit visible.