@@ -262,6 +262,33 @@ var Animation = new Class({
262262 */
263263 this . yoyo = false ;
264264
265+
266+ /**
267+ * Should the GameObject's `visible` property be set to `true` when the animation starts to play?
268+ *
269+ * This will happen _after_ any delay that may have been set.
270+ *
271+ * This value is set when a new animation is loaded into this component, but can also be modified
272+ * at run-time, assuming the animation is currently delayed.
273+ *
274+ * @name Phaser.GameObjects.Components.Animation#showOnStart
275+ * @type {boolean }
276+ * @since 3.50.0
277+ */
278+ this . showOnStart = false ;
279+
280+ /**
281+ * Should the GameObject's `visible` property be set to `false` when the animation completes?
282+ *
283+ * This value is set when a new animation is loaded into this component, but can also be modified
284+ * at run-time, assuming the animation is still actively playing.
285+ *
286+ * @name Phaser.GameObjects.Components.Animation#hideOnComplete
287+ * @type {boolean }
288+ * @since 3.50.0
289+ */
290+ this . hideOnComplete = false ;
291+
265292 /**
266293 * Is the playhead moving forwards (`true`) or in reverse (`false`) ?
267294 *
@@ -392,32 +419,6 @@ var Animation = new Class({
392419 * @since 3.4.0
393420 */
394421 this . _pendingStopValue ;
395-
396- /**
397- * Should the GameObject's `visible` property be set to `true` when the animation starts to play?
398- *
399- * This will happen _after_ any delay that may have been set.
400- *
401- * This value is set when a new animation is loaded into this component, but can also be modified
402- * at run-time, assuming the animation is currently delayed.
403- *
404- * @name Phaser.GameObjects.Components.Animation#showOnStart
405- * @type {boolean }
406- * @since 3.50.0
407- */
408- this . showOnStart = false ;
409-
410- /**
411- * Should the GameObject's `visible` property be set to `false` when the animation completes?
412- *
413- * This value is set when a new animation is loaded into this component, but can also be modified
414- * at run-time, assuming the animation is still actively playing.
415- *
416- * @name Phaser.GameObjects.Components.Animation#hideOnComplete
417- * @type {boolean }
418- * @since 3.50.0
419- */
420- this . hideOnComplete = false ;
421422 } ,
422423
423424 /**
0 commit comments