Search the Community
Showing results for tags 'ease'.
-
Super newb here again with a pretty basic question. i managed to spawn a group and thanks to a mod post I figured out that easing does not play well with physics so I set the body.move to false and case ease from one spot to another. I then tried to create a zig-zag pattern with easing in chunks: tween = game.add.tween(enemies.getAt(1)).to( { x:enemies.getAt(1).x-20, y:enemies.getAt(1).y+20}, 2400, Phaser.Easing.Circular.In, true);tween = game.add.tween(enemies.getAt(1)).to( { x:enemies.getAt(1).x-20, y:enemies.getAt(1).y-20}, 2400, Phaser.Easing.Circular.In, true);tween = game.add.tween(enemies.getAt(1)).to( { x:enemies.getAt(1).x-20, y:enemies.getAt(1).y+20}, 2400, Phaser.Easing.Circular.In, true);tween = game.add.tween(enemies.getAt(1)).to( { x:enemies.getAt(1).x-20, y:enemies.getAt(1).y-20}, 2400, Phaser.Easing.Circular.In, true);However, it does not execute after the first one. I am wondering if there is an easier way to create a movement pattern for an arc or a circle (or an equally/more difficult one that works). Any help would be appreciated.
-
I have side scroller platform game. I want to add some easing to camera follow the character. I am using camera.follow(char) method. Any help on this is appreciable.