function gridAlignLayer(objectLayer){
            Phaser.Actions.GridAlign(objectLayer.getChildren(), {
                width: 4,
                height: 4,
                cellWidth: 60,
                cellHeight: 60,
                x: (closet.x-closet.displayWidth)+80,
                y: closet.y-(closet.displayHeight/2)
            });
        }
//Visually arranges items in layer in a grid formation. 
Visually arranges items in layer in a grid formation.
Visually arranges items in layer in a grid formation .
function gridAlignLayer(objectLayer){
            Phaser.Actions.GridAlign(objectLayer.getChildren(), {
                width: 4,
                height: 4,
                cellWidth: 60,
                cellHeight: 60,
                x: (closet.x-closet.displayWidth)+80,
                y: closet.y-(closet.displayHeight/2)
            });
        }
function gridAlignLayer ( objectLayer ) { Phaser . Actions . GridAlign ( objectLayer . getChildren ( ) , { width : 4 , height : 4 , cellWidth : 60 , cellHeight : 60 , x : ( closet . x - closet . displayWidth ) + 80 , y : closet . y - ( closet . displayHeight / 2 ) } ) ; }
Visually arranges items in layer in a grid formation.
Visually arranges items in layer in a grid formation .