Utils#chanceRoll()

chanceRoll(chance) → {boolean} Generate a random bool result based on the chance value. Returns true or false based on the chance value (default 50%). For example if you wanted a player to have a 30% chanceof getting a bonus, call chanceRoll(30) - true means the chance passed, false means it failed. Parameters Name Type Description chance number The chance of receiving the value. A number between 0 and 100 (effectively 0% to 100%). Returns boolean - True if the roll passed, or false

TweenManager#update()

update() → {boolean} Update all the tween objects you added to this manager. Returns boolean - Return false if there's no tween to update, otherwise return true. Source code: tween/TweenManager.js (Line 242)

TweenManager#TweenManager

new TweenManager(game) Phaser.Game has a single instance of the TweenManager through which all Tween objects are created and updated.Tweens are hooked into the game clock and pause system, adjusting based on the game state. TweenManager is based heavily on tween.js by http://soledadpenades.com.The difference being that tweens belong to a games instance of TweenManager, rather than to a global TWEEN object.It also has callbacks swapped for Signals and a few issues patched with regard to proper

TweenManager#resumeAll()

resumeAll() Resumes all currently paused tweens. Source code: tween/TweenManager.js (Line 344)

TweenManager#removeFrom()

removeFrom(obj, children) Remove all tweens from a specific object, array of objects or Group. Parameters Name Type Argument Default Description obj object | Array.<object> | Phaser.Group The object you want to remove the tweens from. children boolean <optional> true If passing a group, setting this to true will remove the tweens from all of its children instead of the group itself. Source code: tween/TweenManager.js (Line 140)

TweenManager#removeAll()

removeAll() Remove all tweens running and in the queue. Doesn't call any of the tween onComplete events. Source code: tween/TweenManager.js (Line 125)

TweenManager#remove()

remove(tween) Remove a tween from this manager. Parameters Name Type Description tween Phaser.Tween The tween object you want to remove. Source code: tween/TweenManager.js (Line 216)

TweenManager#pauseAll()

pauseAll() Pauses all currently running tweens. Source code: tween/TweenManager.js (Line 330)

TweenManager#isTweening()

isTweening(object) → {boolean} Checks to see if a particular Sprite is currently being tweened. Parameters Name Type Description object object The object to check for tweens against. Returns boolean - Returns true if the object is currently being tweened, false if not. Source code: tween/TweenManager.js (Line 285)

TweenManager#getAll()

getAll() → {Array.<Phaser.Tween>} Get all the tween objects in an array. Returns Array.<Phaser.Tween> - Array with all tween objects. Source code: tween/TweenManager.js (Line 114)