Graphics

 View Only
  • 1.  Script to trigger countdown timer

    Posted 07-29-2016 22:06
    Imagine a memory game with 5 pairs of tiles. The tiles are turned face up for 3 seconds and then turned back around. At that moment I want to trigger a countdown timer widget via a script event in the main scene director. What is the proper script to trigger the timer? Thanks


  • 2.  RE: Script to trigger countdown timer

    Posted 07-30-2016 02:01
    It would be something like this: (note I don't have the API reference handy, so this is from memory)..


    dim widget as xpClockTimerWidget
    engine.GetWidgetByName("TheNameOfMyWidget", widget)
    widget.reset
    widget.start

    #XPression


  • 3.  RE: Script to trigger countdown timer

    Posted 08-01-2016 15:35
    There we go. Simplicity at its finest. I was so close. Thanks Brian.
    #XPression