Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 81
    • Issues 81
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • dulst
  • core
  • Wiki
  • Timer

Last edited by Kaoru Aoi Jan 14, 2019
Page history

Timer

ui: timer is an action that lets you wait to run effects after x amount of seconds.

There are 2 modes, a blocking or non-blocking mode.

Blocking refers to making the entire game wait for the timer to pass before continuing on script execution. This is default. The target column is not applicable, leave it blank.

Non-blocking means the after effect triggers when the timer is up, regardless of what happens in between. Use this for animations that you want to play while still letting other things run. Use this for turn timers to limit the amount of time a player has. Select a player in the target column. The timer runs only for that player. If you do not select a player, then the timer runs for both players simultaneously. This is usually not recommended:

Be careful when using this to keep time in non-server based games. Because people have varying computer and network speeds the timers are not guaranteed trigger at the exact moment for both players. This can cause desyncs. Non-blocking timers should almost never be used for both simultaneously players if your game is not server based. On server-based games a single timer is kept for all players so this becomes ok.

Clone repository
  • Analytics Events
  • Animations
  • Basic Effect Building
  • Change Log v13
  • Change Log v14
  • Change Log v15
  • Change Log v16.1
  • Change Log v16.2
  • Change Log v16.3
  • Change Log v16.4
  • Change Log v16.5
  • Change Log v16.6
  • Change Log v16.7
  • Change Log v16.8
  • Change Log v16
View All Pages