Hi everyone!
Need some advice.
I have a problem with function disableBody - the mistake is “…not a function”
I have found some topics in this forum abt this and as I know I need to add bodies to my objects, but I can not find any method to do this.
Could you please advise me the method
I make the objects with below functions
foods = this.physics.add.group({
allowGravity: true,
immovable: true,
moves: false
});
foods.addMultiple(
map.createFromObjects('food-layer', 'food-place', {key:'tilesheet', frame: 6})
);
how can I add the bodies?