Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

readTickAfterSeconds

readTickAfterSeconds(source, seconds): number

The tick a span of seconds from the source’s tick ends on: the tick a timer started now runs out, which a game keeps in its trait in place of a count it writes every step, so a room sends it once. A span above 0 takes at least one step; a negative span reaches back, for a timer that starts partly spent. Read the time left with readSecondsUntil. A tick means something only in the room that counted it: never save one. As Photon Fusion’s TickTimer.CreateFromSeconds.

Parameter Type
source TickSource
seconds number

number