ADD TO Game.js -- ADD assignBunnyMovement: function(b) { bposition = Math.floor(this.rnd.realInRange(50, this.world.width-50)); bdelay = this.rnd.integerInRange(2000, 6000); if(bposition < b.x){ b.scale.x = 1; }else{ b.scale.x = -1; } t = this.add.tween(b).to({x:bposition}, 3500, Phaser.Easing.Quadratic.InOut, true, bdelay); //properties, duration, ease, autoStart, delay t.onStart.add(this.startBunny, this); t.onComplete.add(this.stopBunny, this); }, startBunny: function(b) { b.animations.stop('Rest'); b.animations.play('Walk', 24, true); }, stopBunny: function(b) { b.animations.stop('Walk'); b.animations.play('Rest', 24, true); this.assignBunnyMovement(b); }, -- buildBunnies this.assignBunnyMovement(b);