Sam 12 Report post Posted August 17, 2014 Maybe I'm blind but is there anywhere a list of available easing effect of Phaser?such like: game.add.tween(this.pauseMenuBTNcancel).to({y:game.height - 200},0, Phaser.Easing.Bounce.Out, true);cheers Quote Share this post Link to post Share on other sites
Sam 12 Report post Posted August 17, 2014 Oh found by myself. ..Google helps Back Bounce Circular Cubic Elastic Exponential Linear Quadratic Quartic Quintic Sinusoidal http://docs.phaser.io/Phaser.Easing.html 1 clark reacted to this Quote Share this post Link to post Share on other sites
Rushikesh 0 Report post Posted September 11, 2014 HI...Is there any rotation effect in Phaser easing? Quote Share this post Link to post Share on other sites
Sam 12 Report post Posted September 11, 2014 I do not knowbut to rotate simply use this in update function: this.YOURVAR.angle += 0.1; Quote Share this post Link to post Share on other sites
lewster32 616 Report post Posted September 11, 2014 Easing doesn't work like that. All easing does is change how a value is changed over time, it doesn't actually matter what value you apply it to. You could easily apply say a Quadratic.InOut to the angle value of a sprite and get it to smoothly start rotating, then slow down gradually to a stop.var ball = game.add.sprite(game.world.centerX, game.world.centerY, 'ball');// This will make the ball turn upside down over 3 seconds, gradually speeding up and then slowing down againgame.add.tween(ball).to({angle: 180}, 3000, Phaser.Easing.Quadratic.InOut, true); 1 Madclaws reacted to this Quote Share this post Link to post Share on other sites
wayfinder 75 Report post Posted September 11, 2014 If you tween x and y separately with phase-offset Sinusoidal easing, it should produce a circular motion. Quote Share this post Link to post Share on other sites
olorin 2 Report post Posted September 11, 2014 You can also see this website: http://gamemechanicexplorer.com/#easing-1There are examples for all easing function with phaser. 1 yasdar reacted to this Quote Share this post Link to post Share on other sites
kstamatov85 3 Report post Posted March 7, 2015 I was going threw the phaser examples and I saw game.add.tween(text).to( { alpha: 1 }, 2000, "Linear", true); When try to use it Phaser gives me an error for "Linear" string. Since small investigation I found this in the docs. It contains all theeasings, so the correct code was game.add.tween(text).to( { alpha: 1 }, 2000, Phaser.Easing.Linear.None, true); Hope this is helpfull Quote Share this post Link to post Share on other sites