sandbox:process
Shared
Fired every engine tick — the main update loop for game logic
Signal
"sandbox:process"Arguments
| Type | Name | Description |
|---|---|---|
float | delta | Time in seconds elapsed since the last tick |
This is the global tick hook for all game logic.
- Use
deltato keep movement and timers framerate-independent. - Do not make
core.engine.draw_*calls here — usesandbox:drawfor all rendering.
Example
util.event.on("sandbox:process", function(delta)
core.engine.print("info", "Tick delta:", delta)
end)local speed = 5.0
local x = 0.0
util.event.on("sandbox:process", function(delta)
x = x + speed * delta
end)