Hello all!
I have an object that derives from Sprite_Character. When attempting to save the game, the encoding collapses on JsonEx._getConstructorName when passed the _events member with the error "TypeError: Cannot read property 'name' of undefined." I see that PIXI.Sprite.call(this, texture); is when this object gets added so it should be OK since all other Sprite_Characters are fine.
Here you can see what the value is when passed into the function:
Any ideas why this PIXI based object is making this call fail? The object I made gets its prototype via Object.create(Sprite_Character.prototype) and performs all initialize calls all the way down to Sprite and functions correctly in-game.
Thanks in advance!
I have an object that derives from Sprite_Character. When attempting to save the game, the encoding collapses on JsonEx._getConstructorName when passed the _events member with the error "TypeError: Cannot read property 'name' of undefined." I see that PIXI.Sprite.call(this, texture); is when this object gets added so it should be OK since all other Sprite_Characters are fine.
Here you can see what the value is when passed into the function:
Any ideas why this PIXI based object is making this call fail? The object I made gets its prototype via Object.create(Sprite_Character.prototype) and performs all initialize calls all the way down to Sprite and functions correctly in-game.
Thanks in advance!