TweenGroup

Module: engine.tween
new game.TweenGroup([onComplete])

Parameters:

  • onComplete Function (optional)

Properties

_complete Boolean

(No description yet)

onComplete Function

On complete callback for group.

tweens Array

List of tweens in group.

Methods

_tweenComplete()

(No description yet)

add(tween) Tween

Add tween to group.

Parameters:

  • tween Tween
pause()

Pause tweening.

remove(tween)

Remove tween from group.

Parameters:

  • tween Tween
resume()

Resume tweening.

start()

Start tweening.

stop(doComplete, endTween)

Stop tweening.

Parameters:

  • doComplete Boolean

    Call onComplete function

  • endTween Boolean

    Set started tweens to end values