ste2425 Posted September 11, 2015 Share Posted September 11, 2015 Hi everybody. Ive got a simple sprite that im moving around using accelerationFromRotation. This all works grand so ive been experimenting with a jump effect. Like the original micro machines. So i perform this by tween the sprites y positionvar bounce=game.add.tween(sprite);bounce.to({ y: sprite.y - 50 }, 200).to({ y: sprite.y}, 200);bounce.start(); This also works and gives the desired affect. However im now getting the camera to follow the sprite. The problem is when i tween the sprite the camera also moves to follow it. So my question what would the best way be to tween the sprite whilst the camera keeps following the sprites original position, which it returns back to. I tried unfollowing the sprite just before the tween then following it again in the on complete callback. This sort of works the sprite moves and the camera doesn't move with it. However when the camera follows again it jumps to the sprites location causing a jitter. Hope that all makes sense trying to explain this as best as i can. Thanks all. Link to comment Share on other sites More sharing options...
ste2425 Posted September 12, 2015 Author Share Posted September 12, 2015 DEADZONE! It seems so simple now. Sorry guys for wasting time here. Link to comment Share on other sites More sharing options...
Recommended Posts