Phaser 3 Tween Snippets


Notice: Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.) in /home/wcc1969/public_html/phasergames.com/wp-includes/functions.php on line 6085

Notice: Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.) in /home/wcc1969/public_html/phasergames.com/wp-includes/functions.php on line 6085

Warning: Undefined variable $output in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/wc_snippets/snippets.php on line 110
Y Tween
Description:Tweens an object's y position
Example:this.tweens.add({targets: mySprite,duration: 300,y:500});

Tween On Complete
Description:onComplete callback
Example:this.tweens.add({targets: mySprite,duration: 1000,y:targetY,onComplete:onCompleteHandler ,onCompleteParams:[custom]}); function onCompleteHandler (tween, targets, custom) { console.log('onCompleteHandler'); console.log(custom); }