You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @property {number} duration - The duration of the path follow.
21
-
* @property {number} from - The start position of the path follow, between 0 and 1.
22
-
* @property {number} to - The end position of the path follow, between 0 and 1.
23
-
* @property {boolean} [positionOnPath=false] - Whether to position the PathFollower on the Path using its path offset.
24
-
* @property {boolean} [rotateToPath=false] - Should the PathFollower automatically rotate to point in the direction of the Path?
25
-
* @property {number} [rotationOffset=0] - If the PathFollower is rotating to match the Path, this value is added to the rotation value. This allows you to rotate objects to a path but control the angle of the rotation as well.
26
-
* @property {number} [startAt=0] - Current start position of the path follow, between 0 and 1.
27
-
*/
28
-
29
15
/**
30
16
* @classdesc
31
17
* A PathFollower Game Object.
@@ -125,7 +111,7 @@ var PathFollower = new Class({
* @property {number} duration - The duration of the path follow.
8
+
* @property {number} from - The start position of the path follow, between 0 and 1.
9
+
* @property {number} to - The end position of the path follow, between 0 and 1.
10
+
* @property {boolean} [positionOnPath=false] - Whether to position the PathFollower on the Path using its path offset.
11
+
* @property {boolean} [rotateToPath=false] - Should the PathFollower automatically rotate to point in the direction of the Path?
12
+
* @property {number} [rotationOffset=0] - If the PathFollower is rotating to match the Path, this value is added to the rotation value. This allows you to rotate objects to a path but control the angle of the rotation as well.
13
+
* @property {number} [startAt=0] - Current start position of the path follow, between 0 and 1.
* @param {RenderTextureConfig} config - The configuration object this Game Object will use to create itself.
20
+
* @param {Phaser.GameObjects.RenderTexture.Types.RenderTextureConfig} config - The configuration object this Game Object will use to create itself.
30
21
* @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.
31
22
*
32
23
* @return {Phaser.GameObjects.RenderTexture} The Game Object that was created.
* @param {SpriteConfig} config - The configuration object this Game Object will use to create itself.
21
+
* @param {Phaser.GameObjects.Sprite.Types.SpriteConfig} config - The configuration object this Game Object will use to create itself.
30
22
* @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.
31
23
*
32
24
* @return {Phaser.GameObjects.Sprite} The Game Object that was created.
0 commit comments