Jump to content

delete-solved


ruslanfan
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...