You can group together multiple different objects and are not limited by choosing only similarly-shaped or coloured objects. To initialize a group which has been placed on the game map, like in the image below,



Simply go to the source editor and add this line in the state you are using:

"use strict";
"use strict"; = {
	create: function(){		
		//use mt.create here, for example"smile");
		// accesses the desired group object"run", [6,7,8,9,10,11], 10, true);"run");
		// accesses the whole group object
		//in this case, changing the alpha level of the whole group;		
	update: function(){

After creating the group, individual group members can be accessed by usingĀ

Sample is available here.

Leave a Reply

Your email address will not be published. Required fields are marked *