ruslanfan Posted January 4, 2018 Share Posted January 4, 2018 Hi everyone! in my project i want show some text for a short time and than remove it, but its not working maybe there is some other way to create text for short time? or maybe i put in wrong place if-statement? update: function() { this.rock.tilePosition.x -=0.5; this.cloud.tilePosition.x -=2; game.physics.arcade.overlap(this.bird, this.gems, this.hit, null, this); if (this.bird.y<10){ var t = game.add.text(200,200,'text'); } if(this.bird.y > 20){ t.destroy(); } }, Link to comment Share on other sites More sharing options...
Recommended Posts