3 Replies Latest reply on Mar 23, 2016 8:25 AM by ClayUUID

    Coding: fade in Symbol after some delay

    henrycramer50858 Level 1



      animate cc provides some code for fading in a symbol


      this.addEventListener('tick', fl_FadeSymbolIn_2.bind(this));

      this.Mov_Test.alpha = 0;

      function fl_FadeSymbolIn_2()


        this.Mov_Test.alpha += 0.005;

        if(this.Mov_Test.alpha >= 1)


        this.removeEventListener('tick', fl_FadeSymbolIn_2.bind(this));




      Is it possible to add some delay to the fading in? The symbol should appear on screen just after some seconds.


      Thank you.