Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Grid Align Phaser 3

	create() {
       //Group Make
        var bilal=this.add.group({
			key:'diamnds',
			frame:[0,1,2,3,4],
			frameQuantity:20
		})
       //Grid Align
		Phaser.Actions.GridAlign(bilal.getChildren(),{
			width:10,
			height:10,
			cellWidth:32,
			cellHeight:32,
			x:100,
			y:100
		})
    
	}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Grid #Align #Phaser
ADD COMMENT
Topic
Name
3+4 =