Function

dt

(): number

Get the delta time since last frame.

// rotate bean 100 deg per second
bean.onUpdate(() => {
    bean.angle += 100 * dt()
})

since v2000.0

group Info

kaplay logo

Layer

Miscalenous