Menu level map


#1

I need your help, I’m going crazy.
I want to create a map of levels like candy crush.
load a tile map like this:
         var map = cc.TMXTiledMap.create (“res/Maps/orthogonal-test1.tmx”);
         this.addChild (map, 1, TAG_TILE_MAP);

var sprite;
var layer = map.getLayer (“pattern1”);
         sprite = layer.getTileAt (cc.p (63, 85));

but do not know how to add buttons to map, buttons in a specific position on the map and move along with the map.

please help :;qst


#2

Hi,
Are Button textures and texture maps on the same image?

And what render mode is you’re using? Canvas or WebGL?