i have an "Uncaught TypeError: this.easingFunction is not a function"
function ComLink(game, planet) {
Phaser.Sprite.call(this, game,game.width - 179 * 1.5, game.height - 116 * 1.5, 'communications_hud');
this.scale.set(1.5);
};
ComLink.prototype = Object.create(Phaser.Sprite.prototype);
ComLink.prototype.constructor = Planet;
ComLink.tween;
ComLink.game;
ComLink.prototype.init = function (game) {
this.game = game;
}
ComLink.prototype.close = function () {
this.game.add.tween(this).to({y: this.game.height}, 200, 'linear', true).start();
console.log(this);
}
...
PlayState.create = function () {
this.game.add.image(0,0,'background');
this._loadLevel();
}
PlayState._loadLevel = function () {
...
this.ComLink = new ComLink(this.game);
this.game.add.existing(this.ComLink);
this.ComLink.init(this.game);
this.ComLink.close(this.game);
}
here's most of the relevant data and here's the log of the comlink
resolved