baba Posted May 4, 2014 Share Posted May 4, 2014 (version: 2.0.4)Phaser.Group.prototype.setProperty will not work for keys which are from prototype chain of the given child. eg sprite = game.world.create(0,0,'foo');game.world.setAll('inputEnabled', true); sprite.inputEnabled === true; //=>false(v2.0.4); true(v2.0.3)I read the source and found that... ----- (refer to... v2.0.4 "Mos Shirare" - Built: Tue Apr 29 2014 22:39:37)In Phaser.Group.prototype.setProperty()if (len === 1 && child.hasOwnProperty(key[0])) ...// no-op if child does not 'own' the key! poorSprite.hasOwnProperty('inputEnabled') => false... ----- (refer to...v2.0.3 "Allorallen" - Built: Fri Apr 11 2014 13:08:30)In Phaser.Group.prototype.setProperty()... if (operation === 0) { child[key[0]] = value; } ... ----- Link to comment Share on other sites More sharing options...
korgoth Posted May 7, 2014 Share Posted May 7, 2014 Becase of this the TILED custom object properties are not set with map.createFromObjects! It is a bug? If not, how can I read the properties? Link to comment Share on other sites More sharing options...
valueerror Posted May 7, 2014 Share Posted May 7, 2014 Becase of this the TILED custom object properties are not set with map.createFromObjects! It is a bug? If not, how can I read the properties?i already talked to rich about that.. its fixed in 2.0.5 .. at least the part with the tiled custom properties Link to comment Share on other sites More sharing options...
korgoth Posted May 7, 2014 Share Posted May 7, 2014 okay, thank you! Link to comment Share on other sites More sharing options...
Recommended Posts