add borken code to follow rocket
This commit is contained in:
parent
098541732b
commit
b74fbc85a3
1 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,10 @@ Q.Sprite.extend("Player",{
|
|||
rocket.add("tween");
|
||||
rocket.animate({ x: 100, y: -500, angle: 360 });
|
||||
|
||||
// FIXME following the rocket does not work
|
||||
Q.stage().unfollow();
|
||||
Q.stage().viewport.follow(rocket);
|
||||
|
||||
// the player disappears
|
||||
this.destroy();
|
||||
|
||||
|
|
Reference in a new issue