WiLD11 Posted November 20, 2016 Share Posted November 20, 2016 Hello, I have a tween which looks like this: var tween = game.add.tween(ball).to({ x: g.balls.children[i - direction].x - 64,y:g.balls.children[8 * row].y }, this.game_speed); tween.start(); Now I want it to do a little bounce every time this tween gets ran, I have tried: game.add.tween(ball).to({ y: g.balls.children[8 * row].y}, this.game_speed * 0.5, Phaser.Easing.Sinusoidal.Out).to({ y: g.balls.children[8 * row].y - 128 }, this.game_speed * 0.5, Phaser.Easing.Sinusoidal.In).start(); but it doesn't look right, it somehow feels like its sliding. Any help will be appreciated. Link to comment Share on other sites More sharing options...
samme Posted November 21, 2016 Share Posted November 21, 2016 Try Phaser.Easing.Bounce.Out. Link to comment Share on other sites More sharing options...
WiLD11 Posted November 24, 2016 Author Share Posted November 24, 2016 On 11/21/2016 at 6:19 AM, samme said: Try Phaser.Easing.Bounce.Out. Good find! Link to comment Share on other sites More sharing options...
Recommended Posts