Time API
Reference for time and deltaTime in Needle Engine
Properties
Property
Type
Description
Frame-Rate Independent Movement
this.gameObject.position.x += speed * this.context.time.deltaTime;Examples
Basic Movement
Rotation
Time-Based Logic
Slow Motion Effect
Frame Counting
Real Time (Unscaled)
Scaled vs Unscaled Time
Property
Affected by timeScale?
Use For
Common Patterns
Smooth Lerp
Clamp Movement Speed
Best Practices
✅ DO
❌ DON'T
Related
Last updated