Jump to content

setAlpha and setVisible don't work (but setCollision yes) with filterTiles method


captainHook
 Share

Recommended Posts

Hi guys,

As mentionned on title, only setCollision work with the code beyond. Looking at the doc, I think el.setAlpha and setVisible() should work, am I missing something?

const erase =  MyStaticTilemapLayer.filterTiles(tile => tile.properties.erase)
erase.forEach(function(el) {
el.setVisible(false)
el.setAlpha(0.2)
el.setCollision(false)
})
}
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...