Packagecom.pblabs.engine.core
Interfacepublic interface ITickedObject
Implementors Box2DManagerComponent, InputManager, ScreenManager, SoundManager, TickedComponent, TweenController

This interface should be implemented by objects that need to perform actions every tick, such as moving, or processing collision. Performing events every tick instead of every frame will give more consistent and correct results. However, things related to rendering or animation should happen every frame so the visual result appears smooth.

Along with implementing this interface, the object needs to be added to the ProcessManager via the AddTickedObject method.

See also

ProcessManager
IAnimatedObject


Public Methods
 MethodDefined By
  
onTick(deltaTime:Number):void
This method is called every tick by the ProcessManager on any objects that have been added to it with the AddTickedObject method.
ITickedObject
Method Detail
onTick()method
public function onTick(deltaTime:Number):void

This method is called every tick by the ProcessManager on any objects that have been added to it with the AddTickedObject method.

Parameters

deltaTime:Number — The amount of time (in seconds) specified for a tick.

See also