2013-10-03 01:38:35 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< title > Phaser Class: Tween< / title >
<!-- [if lt IE 9]>
< script src = "//html5shiv.googlecode.com/svn/trunk/html5.js" > < / script >
<![endif]-->
2014-11-15 20:01:46 +00:00
< link type = "text/css" rel = "stylesheet" href = "styles/default.css" >
2013-10-03 01:38:35 +00:00
< link type = "text/css" rel = "stylesheet" href = "styles/sunlight.default.css" >
< link type = "text/css" rel = "stylesheet" href = "styles/site.cerulean.css" >
< / head >
< body >
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
< div class = "container-fluid" >
< div class = "navbar navbar-fixed-top navbar-inverse" >
2014-11-25 00:23:44 +00:00
< div style = "position: absolute; width: 143px; height: 31px; right: 10px; top: 10px; z-index: 1050" > < a href = "http://phaser.io" > < img src = "img/phaser.png" border = "0" / > < / a > < / div >
2013-10-03 01:38:35 +00:00
< div class = "navbar-inner" >
2014-11-25 00:23:44 +00:00
< a class = "brand" href = "index.html" > Phaser API< / a >
2013-10-03 01:38:35 +00:00
< ul class = "nav" >
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
< li class = "dropdown" >
< a href = "namespaces.list.html" class = "dropdown-toggle" data-toggle = "dropdown" > Namespaces< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-0" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.html" > Phaser< / a >
< / li >
2014-11-15 20:01:46 +00:00
< li class = "class-depth-0" >
< a href = "PIXI.html" > PIXI< / a >
< / li >
2013-10-03 01:38:35 +00:00
< / ul >
< / li >
< li class = "dropdown" >
< a href = "classes.list.html" class = "dropdown-toggle" data-toggle = "dropdown" > Classes< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "Matrix.html" > Matrix< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Animation.html" > Animation< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.AnimationManager.html" > AnimationManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.AnimationParser.html" > AnimationParser< / a >
< / li >
2014-04-29 14:39:02 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.ArrayList.html" > ArrayList< / a >
< / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.ArraySet.html" > ArraySet< / a >
< / li >
2014-11-15 20:01:46 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.ArrayUtils.html" > ArrayUtils< / a >
< / li >
2014-10-09 15:12:53 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.AudioSprite.html" > AudioSprite< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.BitmapData.html" > BitmapData< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-25 15:54:40 +00:00
< a href = "Phaser.BitmapText.html" > BitmapText< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-25 15:54:40 +00:00
< a href = "Phaser.Button.html" > Button< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Cache.html" > Cache< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Camera.html" > Camera< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Canvas.html" > Canvas< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Circle.html" > Circle< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Color.html" > Color< / a >
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-2" >
< a href = "Phaser.Component.Angle.html" > Angle< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Animation.html" > Animation< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.AutoCull.html" > AutoCull< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Bounds.html" > Bounds< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.BringToTop.html" > BringToTop< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Core.html" > Core< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Crop.html" > Crop< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Delta.html" > Delta< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Destroy.html" > Destroy< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.FixedToCamera.html" > FixedToCamera< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Health.html" > Health< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.InCamera.html" > InCamera< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.InputEnabled.html" > InputEnabled< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.InWorld.html" > InWorld< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.LifeSpan.html" > LifeSpan< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.LoadTexture.html" > LoadTexture< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Overlap.html" > Overlap< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.PhysicsBody.html" > PhysicsBody< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Reset.html" > Reset< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.ScaleMinMax.html" > ScaleMinMax< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Smoothed.html" > Smoothed< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Device.html" > Device< / a >
< / li >
2014-11-15 20:01:46 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.DOM.html" > DOM< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Easing.html" > Easing< / a >
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Back.html" > Back< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Bounce.html" > Bounce< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Circular.html" > Circular< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Cubic.html" > Cubic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Elastic.html" > Elastic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Exponential.html" > Exponential< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Linear.html" > Linear< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Quadratic.html" > Quadratic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Quartic.html" > Quartic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Quintic.html" > Quintic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Sinusoidal.html" > Sinusoidal< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-18 03:01:51 +00:00
< a href = "Phaser.Ellipse.html" > Ellipse< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-25 15:54:40 +00:00
< a href = "Phaser.Events.html" > Events< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Filter.html" > Filter< / a >
< / li >
2014-09-09 14:36:56 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.FlexGrid.html" > FlexGrid< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.FlexLayer.html" > FlexLayer< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Frame.html" > Frame< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.FrameData.html" > FrameData< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Game.html" > Game< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-21 15:37:26 +00:00
< a href = "Phaser.GameObjectCreator.html" > GameObjectCreator< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-25 15:54:40 +00:00
< a href = "Phaser.GameObjectFactory.html" > GameObjectFactory< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-05 06:29:17 +00:00
< a href = "Phaser.Gamepad.html" > Gamepad< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-05 06:29:17 +00:00
< a href = "Phaser.GamepadButton.html" > GamepadButton< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-25 15:54:40 +00:00
< a href = "Phaser.Graphics.html" > Graphics< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Group.html" > Group< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-08 07:24:22 +00:00
< a href = "Phaser.Image.html" > Image< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Input.html" > Input< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.InputHandler.html" > InputHandler< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Key.html" > Key< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Keyboard.html" > Keyboard< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-05 06:29:17 +00:00
< a href = "Phaser.Line.html" > Line< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.LinkedList.html" > LinkedList< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Loader.html" > Loader< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.LoaderParser.html" > LoaderParser< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Math.html" > Math< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Mouse.html" > Mouse< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.MSPointer.html" > MSPointer< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Net.html" > Net< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.Particle.html" > Particle< / a >
< / li >
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Particles.html" > Particles< / a >
< / li >
2014-10-09 15:12:53 +00:00
< li class = "class-depth-2" >
< a href = "Phaser.Particles.Arcade.html" > Arcade< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Particles.Arcade.Emitter.html" > Emitter< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-25 15:54:40 +00:00
< a href = "Phaser.Physics.html" > Physics< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-2" >
2013-10-25 15:54:40 +00:00
< a href = "Phaser.Physics.Arcade.html" > Arcade< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Arcade.Body.html" > Body< / a >
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-3" >
< a href = "Phaser.Physics.Arcade.html#TilemapCollision" > TilemapCollision< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-2" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.html" > Ninja< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.AABB.html" > AABB< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.Body.html" > Body< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.Circle.html" > Circle< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.Tile.html" > Tile< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-2" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.html" > P2< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.Body.html" > Body< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.BodyDebug.html" > BodyDebug< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.CollisionGroup.html" > CollisionGroup< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.ContactMaterial.html" > ContactMaterial< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.DistanceConstraint.html" > DistanceConstraint< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-11 12:09:28 +00:00
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.FixtureList.html" > FixtureList< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.GearConstraint.html" > GearConstraint< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.InversePointProxy.html" > InversePointProxy< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.LockConstraint.html" > LockConstraint< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.Material.html" > Material< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.PointProxy.html" > PointProxy< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.PrismaticConstraint.html" > PrismaticConstraint< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.RevoluteConstraint.html" > RevoluteConstraint< / a >
< / li >
2014-09-09 14:36:56 +00:00
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.RotationalSpring.html" > RotationalSpring< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.Spring.html" > Spring< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Plugin.html" > Plugin< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.PluginManager.html" > PluginManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Point.html" > Point< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Pointer.html" > Pointer< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-07 06:10:15 +00:00
< a href = "Phaser.Polygon.html" > Polygon< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.QuadTree.html" > QuadTree< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.RandomDataGenerator.html" > RandomDataGenerator< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Rectangle.html" > Rectangle< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-25 15:54:40 +00:00
< a href = "Phaser.RenderTexture.html" > RenderTexture< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.RequestAnimationFrame.html" > RequestAnimationFrame< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.RetroFont.html" > RetroFont< / a >
< / li >
2014-09-09 14:36:56 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.Rope.html" > Rope< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.ScaleManager.html" > ScaleManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Signal.html" > Signal< / a >
< / li >
2014-04-11 12:09:28 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.SignalBinding.html" > SignalBinding< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-05 06:29:17 +00:00
< a href = "Phaser.SinglePad.html" > SinglePad< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Sound.html" > Sound< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.SoundManager.html" > SoundManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-25 15:54:40 +00:00
< a href = "Phaser.Sprite.html" > Sprite< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-18 03:01:51 +00:00
< a href = "Phaser.SpriteBatch.html" > SpriteBatch< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Stage.html" > Stage< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.State.html" > State< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.StateManager.html" > StateManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-25 15:54:40 +00:00
< a href = "Phaser.Text.html" > Text< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Tile.html" > Tile< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Tilemap.html" > Tilemap< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.TilemapLayer.html" > TilemapLayer< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.TilemapParser.html" > TilemapParser< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Tileset.html" > Tileset< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-25 15:54:40 +00:00
< a href = "Phaser.TileSprite.html" > TileSprite< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Time.html" > Time< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Timer.html" > Timer< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-05 06:29:17 +00:00
< a href = "Phaser.TimerEvent.html" > TimerEvent< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Touch.html" > Touch< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Tween.html" > Tween< / a >
< / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.TweenData.html" > TweenData< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.TweenManager.html" > TweenManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Utils.html" > Utils< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-2" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.Utils.Debug.html" > Debug< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-10-03 01:38:35 +00:00
< a href = "Phaser.World.html" > World< / a >
< / li >
2014-11-15 20:01:46 +00:00
< li class = "class-depth-1" >
< a href = "PIXI.AbstractFilter.html" > AbstractFilter< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.BaseTexture.html" > BaseTexture< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.BitmapText.html" > BitmapText< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasBuffer.html" > CanvasBuffer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasGraphics.html" > CanvasGraphics< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasMaskManager.html" > CanvasMaskManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasRenderer.html" > CanvasRenderer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasTinter.html" > CanvasTinter< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.ComplexPrimitiveShader.html" > ComplexPrimitiveShader< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.DisplayObject.html" > DisplayObject< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.DisplayObjectContainer.html" > DisplayObjectContainer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.Event.html" > Event< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.EventTarget.html" > EventTarget< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.FilterTexture.html" > FilterTexture< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.Graphics.html" > Graphics< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.GraphicsData.html" > GraphicsData< / a >
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.PIXI.html" > PIXI< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.PixiFastShader.html" > PixiFastShader< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.PixiShader.html" > PixiShader< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.PolyK.html" > PolyK< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.PrimitiveShader.html" > PrimitiveShader< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.RenderTexture.html" > RenderTexture< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Rope.html" > Rope< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Sprite.html" > Sprite< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.SpriteBatch.html" > SpriteBatch< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Stage.html" > Stage< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Strip.html" > Strip< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.StripShader.html" > StripShader< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Text.html" > Text< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Texture.html" > Texture< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.TilingSprite.html" > TilingSprite< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.VideoTexture.html" > VideoTexture< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.WebGLBlendModeManager.html" > WebGLBlendModeManager< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.WebGLFastSpriteBatch.html" > WebGLFastSpriteBatch< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.WebGLFilterManager.html" > WebGLFilterManager< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.WebGLRenderer.html" > WebGLRenderer< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "RoundedRectangle.html" > RoundedRectangle< / a >
2014-11-25 00:23:44 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< / ul >
< / li >
< li class = "dropdown" >
< a href = "global.html" class = "dropdown-toggle" data-toggle = "dropdown" > Global< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
2014-11-15 20:01:46 +00:00
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#append" > append< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#apply" > apply< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#applyInverse" > applyInverse< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#blendModes" > blendModes< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#clone" > clone< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#contains" > contains< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#fromArray" > fromArray< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#identity" > identity< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#rotate" > rotate< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#scale" > scale< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#scaleModes" > scaleModes< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#sort" > sort< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#toArray" > toArray< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#translate" > translate< / a >
2014-11-15 20:01:46 +00:00
< / li >
2013-10-03 01:38:35 +00:00
< / ul >
< / li >
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
< li class = "dropdown" >
2014-11-25 00:23:44 +00:00
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Core< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
2014-12-03 10:39:11 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Game.html" > Game< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Group.html" > Group< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.World.html" > World< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Loader.html" > Loader< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Time.html" > Time< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Camera.html" > Camera< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.StateManager.html" > State Manager< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.TweenManager.html" > Tween Manager< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.SoundManager.html" > Sound Manager< / a > < / li >
2015-01-06 06:57:25 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Input.html" > Input Manager< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "Phaser.ScaleManager.html" > Scale Manager< / a > < / li >
< / ul >
< / li >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Game Objects< b class = "caret" > < / b > < / a >
2014-11-15 20:01:46 +00:00
< ul class = "dropdown-menu " >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "Phaser.GameObjectFactory.html" > Factory (game.add)< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.GameObjectCreator.html" > Creator (game.make)< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Sprite.html" > Sprite< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Image.html" > Image< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Sound.html" > Sound< / a > < / li >
2015-01-06 06:57:25 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Particles.Arcade.Emitter.html" > Particle Emitter< / a > < / li >
2014-12-03 10:39:11 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Particle.html" > Particle< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Text.html" > Text< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Tween.html" > Tween< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.BitmapText.html" > BitmapText< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Tilemap.html" > Tilemap< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.BitmapData.html" > BitmapData< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.RetroFont.html" > RetroFont< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Button.html" > Button< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Animation.html" > Animation< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Graphics.html" > Graphics< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.RenderTexture.html" > RenderTexture< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.TileSprite.html" > TileSprite< / a > < / li >
< / ul >
< / li >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Geometry< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "Phaser.Circle.html" > Circle< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Rectangle.html" > Rectangle< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Point.html" > Point< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Line.html" > Line< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Ellipse.html" > Ellipse< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Polygon.html" > Polygon< / a > < / li >
2014-11-15 20:01:46 +00:00
< / ul >
< / li >
2014-11-25 00:23:44 +00:00
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Physics< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "Phaser.Physics.Arcade.html" > Arcade Physics< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.Arcade.Body.html" > Body< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Physics.P2.html" > P2 Physics< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.Body.html" > Body< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.Spring.html" > Spring< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.CollisionGroup.html" > CollisionGroup< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.ContactMaterial.html" > ContactMaterial< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Physics.Ninja.html" > Ninja Physics< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.Body.html" > Body< / a > < / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Input< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "Phaser.InputHandler.html" > Input Handler< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Pointer.html" > Pointer< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Mouse.html" > Mouse< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Keyboard.html" > Keyboard< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Key.html" > Key< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Gamepad.html" > Gamepad< / a > < / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Community< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
2015-03-26 02:55:18 +00:00
< li class = "class-depth-1" > < a href = "http://phaser.io" > Phaser Web Site< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "https://github.com/photonstorm/phaser" > Phaser Github< / a > < / li >
2015-03-26 02:55:18 +00:00
< li class = "class-depth-1" > < a href = "http://phaser.io/examples" > Phaser Examples< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "https://github.com/photonstorm/phaser-plugins" > Phaser Plugins< / a > < / li >
< li class = "class-depth-1" > < a href = "http://www.html5gamedevs.com/forum/14-phaser/" > Forum< / a > < / li >
< li class = "class-depth-1" > < a href = "http://stackoverflow.com/questions/tagged/phaser-framework" > Stack Overflow< / a > < / li >
2015-03-26 02:55:18 +00:00
< li class = "class-depth-1" > < a href = "http://phaser.io/learn" > Weekly Coding Tips< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "https://confirmsubscription.com/h/r/369DE48E3E86AF1E" > Newsletter< / a > < / li >
2015-03-26 02:55:18 +00:00
< li class = "class-depth-1" > < a href = "http://phaser.io/community/twitter" > Twitter< / a > < / li >
< li class = "class-depth-1" > < a href = "http://phaser.io/community/irc" > IRC< / a > < / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-1" > < a href = "https://www.gittip.com/photonstorm/" > Donate to the project< / a > < / li >
< li class = "class-depth-1" > < a href = "https://www.codeandweb.com/texturepacker/phaser" > Texture Packer< / a > < / li >
2014-11-25 00:23:44 +00:00
< / ul >
< / li >
2014-11-15 20:01:46 +00:00
< / ul >
< / div >
< / div >
< div class = "row-fluid" >
2013-10-03 01:38:35 +00:00
< div class = "span8" >
< div id = "main" >
2014-11-25 00:23:44 +00:00
<!-- <h1 class="page - title">Class: Tween</h1> -->
2013-10-03 01:38:35 +00:00
< section >
< header >
< h2 >
< span class = "ancestors" > < a href = "Phaser.html" > Phaser< / a > .< / span >
Tween
< / h2 >
< / header >
< article >
< div class = "container-overview" >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="Tween">< span class = "type-signature" > < / span > new Tween< span class = "signature" > (target, game, manager)< / span > < span class = "type-signature" > < / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > A Tween allows you to alter one or more properties of a target object over a defined period of time.
This can be used for things such as alpha fading Sprites, scaling them or motion.
Use < code > Tween.to< / code > or < code > Tween.from< / code > to set-up the tween values. You can create multiple tweens on the same object
by calling Tween.to multiple times on the same Tween. Additional tweens specified in this way become " child" tweens and
are played through in sequence. You can use Tween.timeScale and Tween.reverse to control the playback of this Tween and all of its children.< / p >
2013-10-03 01:38:35 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-11-25 00:23:44 +00:00
< td class = "name" > < code > target< / code > < / td >
2013-10-03 01:38:35 +00:00
< td class = "type" >
< span class = "param-type" > object< / span >
< / td >
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > The target object, such as a Phaser.Sprite or Phaser.Sprite.scale.< / p > < / td >
2013-10-03 01:38:35 +00:00
< / tr >
< tr >
< td class = "name" > < code > game< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Game.html" > Phaser.Game< / a > < / span >
< / td >
< td class = "description last" > < p > Current game instance.< / p > < / td >
< / tr >
2014-03-14 06:36:05 +00:00
< tr >
< td class = "name" > < code > manager< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.TweenManager.html" > Phaser.TweenManager< / a > < / span >
< / td >
< td class = "description last" > < p > The TweenManager responsible for looking after this Tween.< / p > < / td >
< / tr >
2013-10-03 01:38:35 +00:00
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-20" > line 20< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< / dd >
< / div >
< h3 class = "subsection-title" > Members< / h3 >
< dl >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="chainedTween">< span class = "type-signature" > < / span > chainedTween< span class = "type-signature" > :< a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > If this Tween is chained to another this holds a reference to it.< / p >
2014-11-15 20:01:46 +00:00
< / div >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-129" > line 129< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="current">< span class = "type-signature" > < readonly> < / span > current< span class = "type-signature" > :number< / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > The current Tween child being run.< / p >
2014-11-15 20:01:46 +00:00
< / div >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-10-03 01:38:35 +00:00
< dt class = "tag-default" > Default Value:< / dt >
2014-11-25 00:23:44 +00:00
< dd class = "tag-default" > < ul class = "dummy" > < li > 0< / li > < / ul > < / dd >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-119" > line 119< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="game">< span class = "type-signature" > < / span > game< span class = "type-signature" > :< a href = "Phaser.Game.html" > Phaser.Game< / a > < / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > A reference to the currently running Game.< / p >
2014-11-15 20:01:46 +00:00
< / div >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-25" > line 25< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="isPaused">< span class = "type-signature" > < / span > isPaused< span class = "type-signature" > :boolean< / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > Is this Tween paused or not?< / p >
2014-11-15 20:01:46 +00:00
< / div >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > false< / li > < / ul > < / dd >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-135" > line 135< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="isRunning">< span class = "type-signature" > < / span > isRunning< span class = "type-signature" > :boolean< / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > If the tween is running this is set to true, otherwise false. Tweens that are in a delayed state or waiting to start are considered as being running.< / p >
2014-11-15 20:01:46 +00:00
< / div >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > false< / li > < / ul > < / dd >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-112" > line 112< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
< / dd >
2014-02-05 06:29:17 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dt >
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="manager">< span class = "type-signature" > < / span > manager< span class = "type-signature" > :< a href = "Phaser.TweenManager.html" > Phaser.TweenManager< / a > < / span > < / h4 >
2014-11-15 20:01:46 +00:00
< / dt >
< dd >
2014-02-05 06:29:17 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > Reference to the TweenManager responsible for updating this Tween.< / p >
2014-11-15 20:01:46 +00:00
< / div >
2014-02-05 06:29:17 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-10-03 01:38:35 +00:00
2014-02-05 06:29:17 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-35" > line 35< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
2014-02-05 06:29:17 +00:00
< / dd >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="onChildComplete">< span class = "type-signature" > < / span > onChildComplete< span class = "type-signature" > :< a href = "Phaser.Signal.html" > Phaser.Signal< / a > < / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > The onChildComplete event is fired when the Tween or any of its children completes.
Fires every time a child completes unless a child is set to repeat forever.
It will be sent 2 parameters: the target object and this tween.< / p >
2013-10-03 01:38:35 +00:00
< / div >
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< dl class = "details" >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-99" > line 99< / a >
2014-11-25 00:23:44 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< / dl >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< / dd >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< dt >
< h4 class = "name "
id="onComplete">< span class = "type-signature" > < / span > onComplete< span class = "type-signature" > :< a href = "Phaser.Signal.html" > Phaser.Signal< / a > < / span > < / h4 >
< / dt >
< dd >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< div class = "description" >
< p > The onComplete event is fired when the Tween and all of its children completes. Does not fire if the Tween is set to loop or repeatAll(-1).
It will be sent 2 parameters: the target object and this tween.< / p >
< / div >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< dl class = "details" >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-106" > line 106< / a >
2014-11-25 00:23:44 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< / dl >
2013-10-03 01:38:35 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="onLoop">< span class = "type-signature" > < / span > onLoop< span class = "type-signature" > :< a href = "Phaser.Signal.html" > Phaser.Signal< / a > < / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > The onLoop event is fired if the Tween or any child tween loops.
It will be sent 2 parameters: the target object and this tween.< / p >
2013-10-03 01:38:35 +00:00
< / div >
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< dl class = "details" >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-84" > line 84< / a >
2014-11-25 00:23:44 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< / dd >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< dt >
< h4 class = "name "
id="onRepeat">< span class = "type-signature" > < / span > onRepeat< span class = "type-signature" > :< a href = "Phaser.Signal.html" > Phaser.Signal< / a > < / span > < / h4 >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< div class = "description" >
< p > The onRepeat event is fired if the Tween and all of its children repeats. If this tween has no children this will never be fired.
It will be sent 2 parameters: the target object and this tween.< / p >
2014-11-15 20:01:46 +00:00
< / div >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-91" > line 91< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="onStart">< span class = "type-signature" > < / span > onStart< span class = "type-signature" > :< a href = "Phaser.Signal.html" > Phaser.Signal< / a > < / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > The onStart event is fired when the Tween begins. If there is a delay before the tween starts then onStart fires after the delay is finished.
It will be sent 2 parameters: the target object and this tween.< / p >
2013-10-03 01:38:35 +00:00
< / div >
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< dl class = "details" >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-77" > line 77< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="pendingDelete">< span class = "type-signature" > < readonly> < / span > pendingDelete< span class = "type-signature" > :boolean< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > True if this Tween is ready to be deleted by the TweenManager.< / p >
< / div >
< dl class = "details" >
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > false< / li > < / ul > < / dd >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-70" > line 70< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
2014-12-03 10:39:11 +00:00
id="properties">< span class = "type-signature" > < / span > properties< span class = "type-signature" > :object< / span > < / h4 >
2014-11-25 00:23:44 +00:00
< / dt >
< dd >
< div class = "description" >
< p > Target property cache used when building the child data values.< / p >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-124" > line 124< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="repeatCounter">< span class = "type-signature" > < / span > repeatCounter< span class = "type-signature" > :number< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > If the Tween and any child tweens are set to repeat this contains the current repeat count.< / p >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-63" > line 63< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="reverse">< span class = "type-signature" > < / span > reverse< span class = "type-signature" > :boolean< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > If set to < code > true< / code > the current tween will play in reverse.
If the tween hasn't yet started this has no effect.
If there are child tweens then all child tweens will play in reverse from the current point.< / p >
< / div >
< dl class = "details" >
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > false< / li > < / ul > < / dd >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-49" > line 49< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="target">< span class = "type-signature" > < / span > target< span class = "type-signature" > :object< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > The target object, such as a Phaser.Sprite or property like Phaser.Sprite.scale.< / p >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-30" > line 30< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="timeline">< span class = "type-signature" > < / span > timeline< span class = "type-signature" > :Array< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > An Array of TweenData objects that comprise the different parts of this Tween.< / p >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-40" > line 40< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="timeScale">< span class = "type-signature" > < / span > timeScale< span class = "type-signature" > :number< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > The speed at which the tweens will run. A value of 1 means it will match the game frame rate. 0.5 will run at half the frame rate. 2 at double the frame rate, etc.
If a tweens duration is 1 second but timeScale is 0.5 then it will take 2 seconds to complete.< / p >
< / div >
< dl class = "details" >
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > 1< / li > < / ul > < / dd >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-58" > line 58< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="totalDuration">< span class = "type-signature" > < / span > totalDuration< span class = "type-signature" > :< a href = "Phaser.TweenData.html" > Phaser.TweenData< / a > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Gets the total duration of this Tween, including all child tweens, in milliseconds.< / p >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-863" > line 863< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< / dl >
< h3 class = "subsection-title" > Methods< / h3 >
< dl >
< dt >
< h4 class = "name "
id="chain">< span class = "type-signature" > < / span > chain< span class = "signature" > (tweens)< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > This method allows you to chain tweens together. Any tween chained to this tween will have its < code > Tween.start< / code > method called
as soon as this tween completes. If this tween never completes (i.e. repeatAll or loop is set) then the chain will never progress.
Note that < code > Tween.onComplete< / code > will fire when < em > this< / em > tween completes, not when the whole chain completes.
For that you should listen to < code > onComplete< / code > on the final tween in your chain.< / p >
< p > If you pass multiple tweens to this method they will be joined into a single long chain.
For example if this is Tween A and you pass in B, C and D then B will be chained to A, C will be chained to B and D will be chained to C.
Any previously chained tweens that may have been set will be overwritten.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > tweens< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
< / td >
< td class = "attributes" >
< repeatable>< br >
< / td >
< td class = "description last" > < p > One or more tweens that will be chained to this one.< / p > < / td >
< / tr >
< / tbody >
< / table >
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
< / div >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-546" > line 546< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="delay">< span class = "type-signature" > < / span > delay< span class = "signature" > (duration, < span class = "optional" > index< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Sets the delay in milliseconds before this tween will start. If there are child tweens it sets the delay before the first child starts.
The delay is invoked as soon as you call < code > Tween.start< / code > . If the tween is already running this method doesn't do anything for the current active tween.
2015-01-06 06:57:25 +00:00
If you have not yet called < code > Tween.to< / code > or < code > Tween.from< / code > at least once then this method will do nothing, as there are no tweens to delay.
2014-11-25 00:23:44 +00:00
If you have child tweens and pass -1 as the index value it sets the delay across all of them.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > duration< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The amount of time in ms that the Tween should wait until it begins once started is called. Set to zero to remove any active delay.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > index< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > If this tween has more than one child this allows you to target a specific child. If set to -1 it will set the delay on all the children.< / p > < / td >
< / tr >
< / tbody >
< / table >
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
< / div >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-387" > line 387< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="easing">< span class = "type-signature" > < / span > easing< span class = "signature" > (ease, < span class = "optional" > index< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Set easing function this tween will use, i.e. Phaser.Easing.Linear.None.
The ease function allows you define the rate of change. You can pass either a function such as Phaser.Easing.Circular.Out or a string such as " Circ" .
" .easeIn" , " .easeOut" and " easeInOut" variants are all supported for all ease types.
If you have child tweens and pass -1 as the index value it sets the easing function defined here across all of them.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > ease< / code > < / td >
< td class = "type" >
< span class = "param-type" > function< / span >
|
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The easing function this tween will use, i.e. Phaser.Easing.Linear.None.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > index< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > If this tween has more than one child this allows you to target a specific child. If set to -1 it will set the easing function on all children.< / p > < / td >
< / tr >
< / tbody >
< / table >
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
< / div >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-483" > line 483< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
2015-03-23 23:46:30 +00:00
id="from">< span class = "type-signature" > < / span > from< span class = "signature" > (properties, < span class = "optional" > duration< / span > , < span class = "optional" > ease< / span > , < span class = "optional" > delay< / span > , < span class = "optional" > repeat< / span > , < span class = "optional" > yoyo< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.TweenData.html" > Phaser.TweenData< / a > }< / span > < / h4 >
2014-11-25 00:23:44 +00:00
< / dt >
< dd >
< div class = "description" >
< p > Sets this tween to be a < code > from< / code > tween on the properties given. A < code > from< / code > tween sets the target to the destination value and tweens to its current value.
2015-03-23 23:46:30 +00:00
For example a Sprite with an < code > x< / code > coordinate of 100 tweened from < code > x< / code > 500 would be set to < code > x< / code > 500 and then tweened to < code > x< / code > 100 by giving a properties object of < code > { x: 500 }< / code > .< / p >
2014-11-25 00:23:44 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > properties< / code > < / td >
< td class = "type" >
< span class = "param-type" > object< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The properties you want to tween, such as < code > Sprite.x< / code > or < code > Sound.volume< / code > . Given as a JavaScript object.< / p > < / td >
2014-11-25 00:23:44 +00:00
< / tr >
< tr >
< td class = "name" > < code > duration< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
1000
< / td >
< td class = "description last" > < p > Duration of this tween in ms.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > ease< / code > < / td >
< td class = "type" >
< span class = "param-type" > function< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
null
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden at will.< / p > < / td >
2014-11-25 00:23:44 +00:00
< / tr >
< tr >
< td class = "name" > < code > delay< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > Delay before this tween will start, defaults to 0 (no delay). Value given is in ms.< / p > < / td >
2014-11-25 00:23:44 +00:00
< / tr >
< tr >
< td class = "name" > < code > repeat< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > Should the tween automatically restart once complete? If you want it to run forever set as -1. This ignores any chained tweens.< / p > < / td >
2014-11-25 00:23:44 +00:00
< / tr >
< tr >
< td class = "name" > < code > yoyo< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
false
< / td >
< td class = "description last" > < p > A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.< / p > < / td >
< / tr >
< / tbody >
< / table >
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
2015-03-23 23:46:30 +00:00
< span class = "param-type" > < a href = "Phaser.TweenData.html" > Phaser.TweenData< / a > < / span >
2014-11-25 00:23:44 +00:00
-
< / div >
< div class = "returns-desc param-desc" >
< p > This Tween object.< / p >
< / div >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_TweenData.js.html" > tween/TweenData.js< / a > , < a href = "src_tween_TweenData.js.html#sunlight-1-line-205" > line 205< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
2015-03-23 23:46:30 +00:00
id="from">< span class = "type-signature" > < / span > from< span class = "signature" > (properties, < span class = "optional" > duration< / span > , < span class = "optional" > ease< / span > , < span class = "optional" > autoStart< / span > , < span class = "optional" > delay< / span > , < span class = "optional" > repeat< / span > , < span class = "optional" > yoyo< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
2014-11-25 00:23:44 +00:00
< / dt >
< dd >
< div class = "description" >
< p > Sets this tween to be a < code > from< / code > tween on the properties given. A < code > from< / code > tween sets the target to the destination value and tweens to its current value.
2015-03-23 23:46:30 +00:00
For example a Sprite with an < code > x< / code > coordinate of 100 tweened from < code > x< / code > 500 would be set to < code > x< / code > 500 and then tweened to < code > x< / code > 100 by giving a properties object of < code > { x: 500 }< / code > .
The ease function allows you define the rate of change. You can pass either a function such as Phaser.Easing.Circular.Out or a string such as " Circ" .
" .easeIn" , " .easeOut" and " easeInOut" variants are all supported for all ease types.< / p >
2014-11-25 00:23:44 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > properties< / code > < / td >
< td class = "type" >
< span class = "param-type" > object< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > An object containing the properties you want to tween., such as < code > Sprite.x< / code > or < code > Sound.volume< / code > . Given as a JavaScript object.< / p > < / td >
2014-11-25 00:23:44 +00:00
< / tr >
< tr >
< td class = "name" > < code > duration< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
1000
< / td >
< td class = "description last" > < p > Duration of this tween in ms.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > ease< / code > < / td >
< td class = "type" >
< span class = "param-type" > function< / span >
2015-03-23 23:46:30 +00:00
|
< span class = "param-type" > string< / span >
2014-11-25 00:23:44 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
null
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > autoStart< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
false
< / td >
< td class = "description last" > < p > Set to < code > true< / code > to allow this tween to start automatically. Otherwise call Tween.start().< / p > < / td >
2014-11-25 00:23:44 +00:00
< / tr >
< tr >
< td class = "name" > < code > delay< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > Delay before this tween will start in milliseconds. Defaults to 0, no delay.< / p > < / td >
2014-11-25 00:23:44 +00:00
< / tr >
< tr >
< td class = "name" > < code > repeat< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this induvidual tween, not any chained tweens.< / p > < / td >
2014-11-25 00:23:44 +00:00
< / tr >
< tr >
< td class = "name" > < code > yoyo< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
false
< / td >
< td class = "description last" > < p > A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.< / p > < / td >
< / tr >
< / tbody >
< / table >
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
2015-03-23 23:46:30 +00:00
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
2014-11-25 00:23:44 +00:00
-
< / div >
< div class = "returns-desc param-desc" >
< p > This Tween object.< / p >
< / div >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-215" > line 215< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="generateData">< span class = "type-signature" > < / span > generateData< span class = "signature" > (< span class = "optional" > frameRate< / span > , < span class = "optional" > data< / span > )< / span > < span class = "type-signature" > → {array}< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > This will generate an array populated with the tweened object values from start to end.
It works by running the tween simulation at the given frame rate based on the values set-up in Tween.to and Tween.from.
It ignores delay and repeat counts and any chained tweens, but does include child tweens.
Just one play through of the tween data is returned, including yoyo if set.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > frameRate< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
60
< / td >
< td class = "description last" > < p > The speed in frames per second that the data should be generated at. The higher the value, the larger the array it creates.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > data< / code > < / td >
< td class = "type" >
< span class = "param-type" > array< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > If given the generated data will be appended to this array, otherwise a new array will be returned.< / p > < / td >
< / tr >
< / tbody >
< / table >
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > array< / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > An array of tweened values.< / p >
< / div >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-811" > line 811< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
2015-03-23 23:46:30 +00:00
id="interpolation">< span class = "type-signature" > < / span > interpolation< span class = "signature" > (interpolation, < span class = "optional" > context< / span > , < span class = "optional" > index< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
2014-11-25 00:23:44 +00:00
< / dt >
< dd >
< div class = "description" >
< p > Sets the interpolation function the tween will use. By default it uses Phaser.Math.linearInterpolation.
Also available: Phaser.Math.bezierInterpolation and Phaser.Math.catmullRomInterpolation.
The interpolation function is only used if the target properties is an array.
2015-03-23 23:46:30 +00:00
If you have child tweens and pass -1 as the index value and it will set the interpolation function across all of them.< / p >
2014-11-25 00:23:44 +00:00
< / div >
< h5 > Parameters:< / h5 >
2013-10-03 01:38:35 +00:00
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-11-25 00:23:44 +00:00
< th > Argument< / th >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > interpolation< / code > < / td >
< td class = "type" >
< span class = "param-type" > function< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > The interpolation function to use (Phaser.Math.linearInterpolation by default)< / p > < / td >
< / tr >
2013-10-03 01:38:35 +00:00
2015-03-23 23:46:30 +00:00
< tr >
< td class = "name" > < code > context< / code > < / td >
< td class = "type" >
< span class = "param-type" > object< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The context under which the interpolation function will be run.< / p > < / td >
< / tr >
2013-10-03 01:38:35 +00:00
< tr >
2014-11-25 00:23:44 +00:00
< td class = "name" > < code > index< / code > < / td >
2013-10-03 01:38:35 +00:00
< td class = "type" >
2014-11-25 00:23:44 +00:00
< span class = "param-type" > number< / span >
2013-10-03 01:38:35 +00:00
< / td >
2014-11-25 00:23:44 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "default" >
0
< / td >
2013-10-03 01:38:35 +00:00
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > If this tween has more than one child this allows you to target a specific child. If set to -1 it will set the interpolation function on all children.< / p > < / td >
2013-10-03 01:38:35 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
< / div >
< / div >
2013-10-03 01:38:35 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-505" > line 505< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
2014-05-20 09:12:48 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="loop">< span class = "type-signature" > < / span > loop< span class = "signature" > (< span class = "optional" > value< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
2014-05-20 09:12:48 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > Enables the looping of this tween and all child tweens. If this tween has no children this setting has no effect.
If < code > value< / code > is < code > true< / code > then this is the same as setting < code > Tween.repeatAll(-1)< / code > .
If < code > value< / code > is < code > false< / code > it is the same as setting < code > Tween.repeatAll(0)< / code > and will reset the < code > repeatCounter< / code > to zero.< / p >
< p > Usage:
game.add.tween(p).to({ x: 700 }, 1000, Phaser.Easing.Linear.None, true)
.to({ y: 300 }, 1000, Phaser.Easing.Linear.None)
.to({ x: 0 }, 1000, Phaser.Easing.Linear.None)
.to({ y: 0 }, 1000, Phaser.Easing.Linear.None)
.loop();< / p >
2014-05-20 09:12:48 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-11-25 00:23:44 +00:00
< td class = "name" > < code > value< / code > < / td >
2014-05-20 09:12:48 +00:00
< td class = "type" >
2014-11-25 00:23:44 +00:00
< span class = "param-type" > boolean< / span >
2014-05-20 09:12:48 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
2014-11-25 00:23:44 +00:00
true
2014-05-20 09:12:48 +00:00
< / td >
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > If < code > true< / code > this tween and any child tweens will loop once they reach the end. Set to < code > false< / code > to remove an active loop.< / p > < / td >
2014-05-20 09:12:48 +00:00
< / tr >
2014-11-25 00:23:44 +00:00
< / tbody >
< / table >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
-
< / div >
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
< / div >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< / div >
< dl class = "details" >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-580" > line 580< / a >
2014-11-25 00:23:44 +00:00
< / dt >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< / dl >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< / dd >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< dt >
< h4 class = "name "
id="onUpdateCallback">< span class = "type-signature" > < / span > onUpdateCallback< span class = "signature" > (callback, callbackContext)< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
< / dt >
< dd >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< div class = "description" >
< p > Sets a callback to be fired each time this tween updates.< / p >
< / div >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< h5 > Parameters:< / h5 >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< th > Type< / th >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< tbody >
2014-05-20 09:12:48 +00:00
< tr >
2014-11-25 00:23:44 +00:00
< td class = "name" > < code > callback< / code > < / td >
2014-05-20 09:12:48 +00:00
< td class = "type" >
2014-11-25 00:23:44 +00:00
< span class = "param-type" > function< / span >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< / td >
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
2014-05-20 09:12:48 +00:00
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > The callback to invoke each time this tween is updated. Set to < code > null< / code > to remove an already active callback.< / p > < / td >
2014-05-20 09:12:48 +00:00
< / tr >
< tr >
2014-11-25 00:23:44 +00:00
< td class = "name" > < code > callbackContext< / code > < / td >
2014-05-20 09:12:48 +00:00
< td class = "type" >
2014-11-25 00:23:44 +00:00
< span class = "param-type" > object< / span >
2014-05-20 09:12:48 +00:00
< / td >
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > The context in which to call the onUpdate callback.< / p > < / td >
2014-05-20 09:12:48 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
2014-11-25 00:23:44 +00:00
< p > This tween. Useful for method chaining.< / p >
2014-11-15 20:01:46 +00:00
< / div >
< / div >
2014-05-20 09:12:48 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-612" > line 612< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-05-20 09:12:48 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-03-14 06:36:05 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="pause">< span class = "type-signature" > < / span > pause< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
2014-03-14 06:36:05 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-03-14 06:36:05 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > Pauses the tween. Resume playback with Tween.resume.< / p >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-629" > line 629< / a >
2014-11-25 00:23:44 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
2015-03-23 23:46:30 +00:00
id="repeat">< span class = "type-signature" > < / span > repeat< span class = "signature" > (total)< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
2014-11-25 00:23:44 +00:00
< / dt >
< dd >
< div class = "description" >
2015-03-23 23:46:30 +00:00
< p > Set how many times this tween and all of its children will repeat.
A tween (A) with 3 children (B,C,D) with a < code > repeatAll< / code > value of 2 would play as: ABCDABCD before completing.
When all child tweens have completed Tween.onLoop will be dispatched.< / p >
2014-03-14 06:36:05 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-11-25 00:23:44 +00:00
< td class = "name" > < code > total< / code > < / td >
2014-03-14 06:36:05 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > How many times this tween and all children should repeat before completing. Set to zero to remove an active repeat. Set to -1 to repeat forever.< / p > < / td >
2014-03-14 06:36:05 +00:00
< / tr >
2015-03-23 23:46:30 +00:00
< / tbody >
< / table >
2014-03-14 06:36:05 +00:00
2015-03-23 23:46:30 +00:00
2014-03-14 06:36:05 +00:00
2015-03-23 23:46:30 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
2014-03-14 06:36:05 +00:00
2015-03-23 23:46:30 +00:00
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
< / div >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-527" > line 527< / a >
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="repeat">< span class = "type-signature" > < / span > repeat< span class = "signature" > (total, < span class = "optional" > repeat< / span > , < span class = "optional" > index< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Sets the number of times this tween will repeat.
If you have not yet called < code > Tween.to< / code > or < code > Tween.from< / code > at least once then this method will do nothing, as there are no tweens to repeat.
If you have child tweens and pass -1 as the index value it sets the number of times they'll repeat across all of them.
If you wish to define how many times this Tween and all children will repeat see Tween.repeatAll.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > total< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > How many times a tween should repeat before completing. Set to zero to remove an active repeat. Set to -1 to repeat forever.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > repeat< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > This is the amount of time to pause (in ms) before the repeat will start.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > index< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
2014-03-14 06:36:05 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
2014-11-25 00:23:44 +00:00
0
2014-03-14 06:36:05 +00:00
< / td >
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > If this tween has more than one child this allows you to target a specific child. If set to -1 it will set the repeat value on all the children.< / p > < / td >
2014-03-14 06:36:05 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
2014-11-25 00:23:44 +00:00
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
2014-11-15 20:01:46 +00:00
-
< / div >
< div class = "returns-desc param-desc" >
2014-11-25 00:23:44 +00:00
< p > This tween. Useful for method chaining.< / p >
2014-11-15 20:01:46 +00:00
< / div >
< / div >
2014-03-14 06:36:05 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-404" > line 404< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-03-14 06:36:05 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-03-14 06:36:05 +00:00
2013-10-03 01:38:35 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2015-03-23 23:46:30 +00:00
id="repeatDelay">< span class = "type-signature" > < / span > repeatDelay< span class = "signature" > (duration, < span class = "optional" > index< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
2015-03-23 23:46:30 +00:00
< p > Sets the delay in milliseconds before this tween will repeat itself.
The repeatDelay is invoked as soon as you call < code > Tween.start< / code > . If the tween is already running this method doesn't do anything for the current active tween.
If you have not yet called < code > Tween.to< / code > or < code > Tween.from< / code > at least once then this method will do nothing, as there are no tweens to set repeatDelay on.
If you have child tweens and pass -1 as the index value it sets the repeatDelay across all of them.< / p >
2013-10-03 01:38:35 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2015-03-23 23:46:30 +00:00
< th > Argument< / th >
2013-10-03 01:38:35 +00:00
2015-03-23 23:46:30 +00:00
< th > Default< / th >
2013-10-03 01:38:35 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > duration< / code > < / td >
2013-10-03 01:38:35 +00:00
< td class = "type" >
2014-11-25 00:23:44 +00:00
< span class = "param-type" > number< / span >
2013-10-03 01:38:35 +00:00
< / td >
2015-03-23 23:46:30 +00:00
< td class = "attributes" >
< / td >
2013-10-03 01:38:35 +00:00
2015-03-23 23:46:30 +00:00
< td class = "default" >
< / td >
2013-10-03 01:38:35 +00:00
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The amount of time in ms that the Tween should wait until it repeats or yoyos once start is called. Set to zero to remove any active repeatDelay.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > index< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > If this tween has more than one child this allows you to target a specific child. If set to -1 it will set the repeatDelay on all the children.< / p > < / td >
2013-10-03 01:38:35 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
< / div >
< / div >
2013-10-03 01:38:35 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-426" > line 426< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="resume">< span class = "type-signature" > < / span > resume< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > Resumes a paused tween.< / p >
2013-10-03 01:38:35 +00:00
< / div >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-661" > line 661< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="start">< span class = "type-signature" > < / span > start< span class = "signature" > (< span class = "optional" > index< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > Starts the tween running. Can also be called by the autoStart parameter of < code > Tween.to< / code > or < code > Tween.from< / code > .
This sets the < code > Tween.isRunning< / code > property to < code > true< / code > and dispatches a < code > Tween.onStart< / code > signal.
If the Tween has a delay set then nothing will start tweening until the delay has expired.< / p >
2013-10-03 01:38:35 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-11-25 00:23:44 +00:00
< th > Argument< / th >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< th > Default< / th >
2013-10-03 01:38:35 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-11-25 00:23:44 +00:00
< td class = "name" > < code > index< / code > < / td >
2013-10-03 01:38:35 +00:00
< td class = "type" >
2014-11-25 00:23:44 +00:00
< span class = "param-type" > number< / span >
2013-10-03 01:38:35 +00:00
< / td >
2014-11-25 00:23:44 +00:00
< td class = "attributes" >
< optional>< br >
2014-07-10 19:31:11 +00:00
2014-11-25 00:23:44 +00:00
2014-07-10 19:31:11 +00:00
2014-11-25 00:23:44 +00:00
< / td >
2014-07-10 19:31:11 +00:00
2014-11-25 00:23:44 +00:00
< td class = "default" >
0
< / td >
2014-07-10 19:31:11 +00:00
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > If this Tween contains child tweens you can specify which one to start from. The default is zero, i.e. the first tween created.< / p > < / td >
2014-07-10 19:31:11 +00:00
< / tr >
2014-11-25 00:23:44 +00:00
< / tbody >
< / table >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
-
< / div >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
2013-10-03 01:38:35 +00:00
< / div >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< / div >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-262" > line 262< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="stop">< span class = "type-signature" > < / span > stop< span class = "signature" > (< span class = "optional" > complete< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > Stops the tween if running and flags it for deletion from the TweenManager.
If called directly the < code > Tween.onComplete< / code > signal is not dispatched and no chained tweens are started unless the complete parameter is set to < code > true< / code > .
If you just wish to pause a tween then use Tween.pause instead.< / p >
2013-10-03 01:38:35 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-11-25 00:23:44 +00:00
< th > Argument< / th >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< th > Default< / th >
2013-10-03 01:38:35 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-11-25 00:23:44 +00:00
< td class = "name" > < code > complete< / code > < / td >
2013-10-03 01:38:35 +00:00
< td class = "type" >
2014-11-25 00:23:44 +00:00
< span class = "param-type" > boolean< / span >
2013-10-03 01:38:35 +00:00
< / td >
2014-11-25 00:23:44 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "default" >
false
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > Set to < code > true< / code > to dispatch the Tween.onComplete signal.< / p > < / td >
2013-10-03 01:38:35 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
< / div >
< / div >
2013-10-03 01:38:35 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-320" > line 320< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="to">< span class = "type-signature" > < / span > to< span class = "signature" > (properties, < span class = "optional" > duration< / span > , < span class = "optional" > ease< / span > , < span class = "optional" > autoStart< / span > , < span class = "optional" > delay< / span > , < span class = "optional" > repeat< / span > , < span class = "optional" > yoyo< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > Sets this tween to be a < code > to< / code > tween on the properties given. A < code > to< / code > tween starts at the current value and tweens to the destination value given.
For example a Sprite with an < code > x< / code > coordinate of 100 could be tweened to < code > x< / code > 200 by giving a properties object of < code > { x: 200 }< / code > .
The ease function allows you define the rate of change. You can pass either a function such as Phaser.Easing.Circular.Out or a string such as " Circ" .
" .easeIn" , " .easeOut" and " easeInOut" variants are all supported for all ease types.< / p >
2013-10-03 01:38:35 +00:00
< / div >
2014-11-25 00:23:44 +00:00
< h5 > Parameters:< / h5 >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< th > Type< / th >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< th > Argument< / th >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< th > Default< / th >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< tbody >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< tr >
< td class = "name" > < code > properties< / code > < / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "type" >
< span class = "param-type" > object< / span >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "attributes" >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "default" >
< / td >
2013-10-03 01:38:35 +00:00
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > An object containing the properties you want to tween, such as < code > Sprite.x< / code > or < code > Sound.volume< / code > . Given as a JavaScript object.< / p > < / td >
2014-11-25 00:23:44 +00:00
< / tr >
< tr >
< td class = "name" > < code > duration< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
1000
< / td >
< td class = "description last" > < p > Duration of this tween in ms.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > ease< / code > < / td >
< td class = "type" >
< span class = "param-type" > function< / span >
|
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
null
< / td >
< td class = "description last" > < p > Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > autoStart< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
false
< / td >
< td class = "description last" > < p > Set to < code > true< / code > to allow this tween to start automatically. Otherwise call Tween.start().< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > delay< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< / td >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< td class = "attributes" >
< optional>< br >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< / td >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< td class = "default" >
0
< / td >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > Delay before this tween will start in milliseconds. Defaults to 0, no delay.< / p > < / td >
< / tr >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< tr >
< td class = "name" > < code > repeat< / code > < / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "attributes" >
< optional>< br >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "default" >
0
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this induvidual tween, not any chained tweens.< / p > < / td >
< / tr >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< tr >
< td class = "name" > < code > yoyo< / code > < / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "type" >
< span class = "param-type" > boolean< / span >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "attributes" >
< optional>< br >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< / td >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< td class = "default" >
false
< / td >
< td class = "description last" > < p > A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.< / p > < / td >
< / tr >
< / tbody >
< / table >
2013-10-03 01:38:35 +00:00
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
2014-11-25 00:23:44 +00:00
< p > This Tween object.< / p >
2014-11-15 20:01:46 +00:00
< / div >
< / div >
2013-10-03 01:38:35 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-168" > line 168< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-11-25 00:23:44 +00:00
id="to">< span class = "type-signature" > < / span > to< span class = "signature" > (properties, < span class = "optional" > duration< / span > , < span class = "optional" > ease< / span > , < span class = "optional" > delay< / span > , < span class = "optional" > repeat< / span > , < span class = "optional" > yoyo< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.TweenData.html" > Phaser.TweenData< / a > }< / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
2014-07-10 19:31:11 +00:00
< p > Sets this tween to be a < code > to< / code > tween on the properties given. A < code > to< / code > tween starts at the current value and tweens to the destination value given.
For example a Sprite with an < code > x< / code > coordinate of 100 could be tweened to < code > x< / code > 200 by giving a properties object of < code > { x: 200 }< / code > .< / p >
2013-10-03 01:38:35 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-02-05 06:29:17 +00:00
< th > Argument< / th >
2013-10-03 01:38:35 +00:00
2014-02-05 06:29:17 +00:00
< th > Default< / th >
2013-10-03 01:38:35 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > properties< / code > < / td >
< td class = "type" >
< span class = "param-type" > object< / span >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "attributes" >
< / td >
2013-10-03 01:38:35 +00:00
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-10-03 01:38:35 +00:00
2014-07-10 19:31:11 +00:00
< td class = "description last" > < p > The properties you want to tween, such as < code > Sprite.x< / code > or < code > Sound.volume< / code > . Given as a JavaScript object.< / p > < / td >
2013-10-03 01:38:35 +00:00
< / tr >
< tr >
< td class = "name" > < code > duration< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2013-10-03 01:38:35 +00:00
2014-02-05 06:29:17 +00:00
< td class = "default" >
1000
< / td >
2013-10-03 01:38:35 +00:00
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Duration of this tween in ms.< / p > < / td >
2013-10-03 01:38:35 +00:00
< / tr >
< tr >
< td class = "name" > < code > ease< / code > < / td >
< td class = "type" >
< span class = "param-type" > function< / span >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "attributes" >
< optional>< br >
2013-10-03 01:38:35 +00:00
2014-02-05 06:29:17 +00:00
< / td >
< td class = "default" >
null
< / td >
2013-10-03 01:38:35 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden at will.< / p > < / td >
2013-10-03 01:38:35 +00:00
< / tr >
< tr >
< td class = "name" > < code > delay< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2013-10-03 01:38:35 +00:00
2014-02-05 06:29:17 +00:00
< td class = "default" >
0
< / td >
2013-10-03 01:38:35 +00:00
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Delay before this tween will start, defaults to 0 (no delay). Value given is in ms.< / p > < / td >
2013-10-03 01:38:35 +00:00
< / tr >
< tr >
< td class = "name" > < code > repeat< / code > < / td >
< td class = "type" >
2014-03-24 12:41:45 +00:00
< span class = "param-type" > number< / span >
2013-10-03 01:38:35 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "attributes" >
< optional>< br >
2013-10-03 01:38:35 +00:00
2014-02-05 06:29:17 +00:00
< / td >
< td class = "default" >
0
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > Should the tween automatically restart once complete? If you want it to run forever set as -1. This ignores any chained tweens.< / p > < / td >
2013-10-03 01:38:35 +00:00
< / tr >
< tr >
< td class = "name" > < code > yoyo< / code > < / td >
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > boolean< / span >
2013-10-03 01:38:35 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2013-10-03 01:38:35 +00:00
2014-02-05 06:29:17 +00:00
< td class = "default" >
false
< / td >
2013-10-03 01:38:35 +00:00
2014-04-10 22:13:43 +00:00
< td class = "description last" > < p > A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.< / p > < / td >
2013-10-03 01:38:35 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
2014-11-25 00:23:44 +00:00
< span class = "param-type" > < a href = "Phaser.TweenData.html" > Phaser.TweenData< / a > < / span >
2014-11-15 20:01:46 +00:00
-
< / div >
< div class = "returns-desc param-desc" >
< p > This Tween object.< / p >
< / div >
< / div >
2013-10-03 01:38:35 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_TweenData.js.html" > tween/TweenData.js< / a > , < a href = "src_tween_TweenData.js.html#sunlight-1-line-177" > line 177< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="update">< span class = "type-signature" > < / span > update< span class = "signature" > (time)< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
< p > Core tween update function called by the TweenManager. Does not need to be invoked directly.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > time< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > A timestamp passed in by the TweenManager.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > boolean< / span >
-
< / div >
< div class = "returns-desc param-desc" >
2014-11-25 00:23:44 +00:00
< p > false if the tween and all child tweens have completed and should be deleted from the manager, otherwise true (still active).< / p >
2014-11-15 20:01:46 +00:00
< / div >
< / div >
2013-10-03 01:38:35 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-703" > line 703< / a >
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="updateTweenData">< span class = "type-signature" > < / span > updateTweenData< span class = "signature" > (property, value, < span class = "optional" > index< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Updates either a single TweenData or all TweenData objects properties to the given value.
Used internally by methods like Tween.delay, Tween.yoyo, etc. but can also be called directly if you know which property you want to tweak.
The property is not checked, so if you pass an invalid one you'll generate a run-time error.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > property< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The property to update.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > value< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
|
< span class = "param-type" > function< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The value to set the property to.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > index< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > If this tween has more than one child this allows you to target a specific child. If set to -1 it will set the delay on all the children.< / p > < / td >
< / tr >
< / tbody >
< / table >
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
< / div >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-354" > line 354< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2015-03-23 23:46:30 +00:00
id="yoyo">< span class = "type-signature" > < / span > yoyo< span class = "signature" > (enable, < span class = "optional" > yoyoDelay< / span > , < span class = "optional" > index< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
2013-10-03 01:38:35 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< div class = "description" >
2014-11-25 00:23:44 +00:00
< p > A Tween that has yoyo set to true will run through from its starting values to its end values and then play back in reverse from end to start.
Used in combination with repeat you can create endless loops.
2015-01-06 06:57:25 +00:00
If you have not yet called < code > Tween.to< / code > or < code > Tween.from< / code > at least once then this method will do nothing, as there are no tweens to yoyo.
2014-11-25 00:23:44 +00:00
If you have child tweens and pass -1 as the index value it sets the yoyo property across all of them.
If you wish to yoyo this Tween and all of its children then see Tween.yoyoAll.< / p >
2013-10-03 01:38:35 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-11-25 00:23:44 +00:00
< th > Argument< / th >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< th > Default< / th >
2013-10-03 01:38:35 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-11-25 00:23:44 +00:00
< td class = "name" > < code > enable< / code > < / td >
2013-10-03 01:38:35 +00:00
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
2014-11-25 00:23:44 +00:00
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > Set to true to yoyo this tween, or false to disable an already active yoyo.< / p > < / td >
< / tr >
2015-03-23 23:46:30 +00:00
< tr >
< td class = "name" > < code > yoyoDelay< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > This is the amount of time to pause (in ms) before the yoyo will start.< / p > < / td >
< / tr >
2014-11-25 00:23:44 +00:00
< tr >
< td class = "name" > < code > index< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "default" >
0
< / td >
2013-10-03 01:38:35 +00:00
2014-11-25 00:23:44 +00:00
< td class = "description last" > < p > If this tween has more than one child this allows you to target a specific child. If set to -1 it will set yoyo on all the children.< / p > < / td >
2013-10-03 01:38:35 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
< / div >
< / div >
2013-10-03 01:38:35 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-443" > line 443< / a >
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="yoyoDelay">< span class = "type-signature" > < / span > yoyoDelay< span class = "signature" > (duration, < span class = "optional" > index< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Tween.html" > Phaser.Tween< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Sets the delay in milliseconds before this tween will run a yoyo (only applies if yoyo is enabled).
The repeatDelay is invoked as soon as you call < code > Tween.start< / code > . If the tween is already running this method doesn't do anything for the current active tween.
If you have not yet called < code > Tween.to< / code > or < code > Tween.from< / code > at least once then this method will do nothing, as there are no tweens to set repeatDelay on.
If you have child tweens and pass -1 as the index value it sets the repeatDelay across all of them.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > duration< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The amount of time in ms that the Tween should wait until it repeats or yoyos once start is called. Set to zero to remove any active yoyoDelay.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > index< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > If this tween has more than one child this allows you to target a specific child. If set to -1 it will set the yoyoDelay on all the children.< / p > < / td >
< / tr >
< / tbody >
< / table >
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Tween.html" > Phaser.Tween< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This tween. Useful for method chaining.< / p >
< / div >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
< a href = "src_tween_Tween.js.html" > tween/Tween.js< / a > , < a href = "src_tween_Tween.js.html#sunlight-1-line-466" > line 466< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-10-03 01:38:35 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-10-03 01:38:35 +00:00
< / dd >
< / dl >
< / article >
< / section >
< / div >
< div class = "clearfix" > < / div >
< footer >
< span class = "copyright" >
2015-03-23 23:46:30 +00:00
Phaser Copyright © 2012-2015 Photon Storm Ltd.
2013-10-03 01:38:35 +00:00
< / span >
< br / >
< span class = "jsdoc-message" >
2015-03-23 23:46:30 +00:00
Documentation generated by < a href = "https://github.com/jsdoc3/jsdoc" > JSDoc 3.3.0-alpha10< / a >
2015-03-26 02:55:18 +00:00
on Thu Mar 26 2015 02:53:58 GMT+0000 (GMT Standard Time) using the < a href = "https://github.com/terryweiss/docstrap" > DocStrap template< / a > .
2013-10-03 01:38:35 +00:00
< / span >
< / footer >
< / div >
< div class = "span3" >
< div id = "toc" > < / div >
< / div >
< br clear = "both" >
< / div >
< / div >
< script src = "scripts/sunlight.js" > < / script >
< script src = "scripts/sunlight.javascript.js" > < / script >
< script src = "scripts/sunlight-plugin.doclinks.js" > < / script >
< script src = "scripts/sunlight-plugin.linenumbers.js" > < / script >
< script src = "scripts/sunlight-plugin.menu.js" > < / script >
< script src = "scripts/jquery.min.js" > < / script >
< script src = "scripts/jquery.scrollTo.js" > < / script >
< script src = "scripts/jquery.localScroll.js" > < / script >
< script src = "scripts/bootstrap-dropdown.js" > < / script >
< script src = "scripts/toc.js" > < / script >
< script > Sunlight . highlightAll ( { lineNumbers : true , showMenu : true , enableDoclinks : true } ) ; < / script >
< script >
$( function () {
$( "#toc" ).toc( {
2014-04-10 22:13:43 +00:00
anchorName : function(i, heading, prefix) {
2014-03-14 06:36:05 +00:00
return $(heading).attr("id") || ( prefix + i );
},
2013-10-03 01:38:35 +00:00
selectors : "h1,h2,h3,h4",
showAndHide : false,
scrollTo : 60
} );
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
} );
< / script >
< / body >
< / html >