neingeist
/
cosmos
Archived
1
0
Fork 0

add borken code to follow rocket

master
neingeist 11 years ago
parent 098541732b
commit b74fbc85a3

@ -27,6 +27,10 @@ Q.Sprite.extend("Player",{
rocket.add("tween"); rocket.add("tween");
rocket.animate({ x: 100, y: -500, angle: 360 }); 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 // the player disappears
this.destroy(); this.destroy();