xronn Posted February 28, 2014 Share Posted February 28, 2014 Hi, I'm using phaser 1.1.3, I have my player and I added a weapon as a child. I was wondering how I could get that weapon to follow my player or be with him when he walks around. Also will I need to set a weapon.body so the game knows if the players weapon has touched an enemy?thanks Link to comment Share on other sites More sharing options...
Magnifisite Posted February 28, 2014 Share Posted February 28, 2014 gun.x = player.x;gun.y = player.y;gun.angle = player.angle;If you put that in the update function then it should work. Link to comment Share on other sites More sharing options...
Recommended Posts