Ticker
object Ticker
Calls tick
related methods every frame. The order of operations :
Note. Behaviour.tick is only called for top-level Actors. i.e. those whose parent is a Stage. Child actors (whose parent is another Actor) are NOT called. If child actors need to be ticked, then this is the responsibility of the parent actor's behaviour. e.g.
class MyParentBehaviour : Behaviour {
override fun tick( actor : Actor, seconds : Float ) {
// Actions to perform before the children...
for (child in actor.children) {
child.behaviour.tick( child, seconds )
}
// Actions to perform after the children...
}
}
Content copied to clipboard