Hi, I have create class which i want to have state prototype .So i have try to use extending method .But i am facing some error /**code**/ var obj = function(){ this.x = 20; this.y = 20; } obj.prototype = Object.create(Phaser.State.prototype); obj.prototype.constructor = obj; //basically i want to preload function of Phaser.State //But it is not working plz help me out