beetlebug▾
/

ztk::game pause

Pauses the steps of the loop.

ztk::game pause

Description

The frames run no step and no draw until ztk::game resume. The time of the pause does not count.

Returns

An empty string.

Examples

% ztk::game loop -update {}
> ztk::game pause
> dict get [ztk::game info] paused
1

Errors

% ztk::game pause now
wrong # args: should be "ztk::game pause"
-errorcode TCL WRONGARGS

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.7

See also