Graphics

 View Only
  • 1.  Game: Updating scores live on output via script

    Posted 09-21-2015 19:54
    Hello,

    I have a scoreboard for a free throw game that consists of a :30 countdown clock and scores for two players. I need to increment the scores for each player on the fly live, as they both throw together. Countdown clock is working, but I can't figure out how to increment each player's score randomly and VERY fast. I'm assuming script is the only way. I'm currently using just one scene. Is there anyone out there that could offer some quick solution? Naturally, I have about 30 minutes to get this working. :) Appreciate the help.


  • 2.  RE: Game: Updating scores live on output via script

    Posted 09-21-2015 19:59
    Create two counter widgets and assign it to both players scores in the scene.. The in the widget properties set the Increment value to 2 if you want it to go up by two, and assign a hotkey to it (in the widget properties).



    `

    #XPression


  • 3.  RE: Game: Updating scores live on output via script

    Posted 09-21-2015 20:00
    If you want to do it in the keyboard mapping menu so you can assign it to the user keys on the keyboard, you can use a script like this:

    `dim widget as xpCounterWidget

    engine.GetWidgetByName("Counter1", widget)

    widget.Value = widget.value + 2

    `

    #XPression


  • 4.  RE: Game: Updating scores live on output via script

    Posted 09-21-2015 20:05
    Dang - that was so EASY! Thank you so much Brian for the super quick reply.

    #XPression


  • 5.  RE: Game: Updating scores live on output via script

    Posted 09-21-2015 20:07
    And that was my next question... thanks for the answer before I asked.

    #XPression


  • 6.  RE: Game: Updating scores live on output via script

    Posted 09-21-2015 23:23
    Brian, is there a way to add a script to the timeline to trigger the counter?

    I need to render the scene as a .mov with the counter counting.

    Thanks

    #XPression


  • 7.  RE: Game: Updating scores live on output via script

    Posted 09-24-2015 15:51
    In the Scene Director Right Click > Add Clip > Script

    #XPression