Sam Posted August 17, 2014 Share 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 Link to comment Share on other sites More sharing options...
Sam Posted August 17, 2014 Author Share 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 clark 1 Link to comment Share on other sites More sharing options...
Rushikesh Posted September 11, 2014 Share Posted September 11, 2014 HI...Is there any rotation effect in Phaser easing? Link to comment Share on other sites More sharing options...
Sam Posted September 11, 2014 Author Share Posted September 11, 2014 I do not knowbut to rotate simply use this in update function: this.YOURVAR.angle += 0.1; Link to comment Share on other sites More sharing options...
lewster32 Posted September 11, 2014 Share 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); Madclaws 1 Link to comment Share on other sites More sharing options...
wayfinder Posted September 11, 2014 Share Posted September 11, 2014 If you tween x and y separately with phase-offset Sinusoidal easing, it should produce a circular motion. Link to comment Share on other sites More sharing options...
olorin Posted September 11, 2014 Share Posted September 11, 2014 You can also see this website: http://gamemechanicexplorer.com/#easing-1There are examples for all easing function with phaser. yasdar 1 Link to comment Share on other sites More sharing options...
kstamatov85 Posted March 7, 2015 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts