JokerJESUS Posted February 1, 2017 Share Posted February 1, 2017 Hello, I have a problem with adding custom properies to Phaser Groups So i tried like this Gun1.enableBody = true; Gun1.createMultiple(10,'bullet'); Gun1.addAll('dmg', 20); And like this Gun1.enableBody = true; Gun1.createMultiple(10,'bullet'); Gun1.setAll('dmg', 20); And none of childrens has prop dmg.... Link to comment Share on other sites More sharing options...
samme Posted February 1, 2017 Share Posted February 1, 2017 Don't use `addAll`, which is add in the sense of sum. You need to use `setAll` with `force`, since the property doesn't exist: group.setAll('dmg', 20, null, null, null, true) JokerJESUS 1 Link to comment Share on other sites More sharing options...
Recommended Posts