Adding FlxText during a countdown



  • Hey everyone I've been trying to add text to a scene at certain times during a countdown.

    I've set up a timer to countdown to 0 from 6 seconds, and I don't know how to add text during the once it reaches something like 4 seconds.

    I'm somewhat new to this and I haven't posted to these forums before so if you need more info about what I'm trying to accomplish feel free to let me know.



  • You can check elapsedTime:

    if (timer.elapsedTime >= 4)
        showYourText()
    

Log in to reply