4 reputation
bio website
location
age
visits member for 2 years, 5 months
seen Jul 11 '12 at 7:26

Jul
11
comment How to fire a bullet in a specific direction?
private void fireBullet(){ float plusX = 16; float plusY = plusX * mPlayer.getRotationValue(); Bullet mBullet = new Bullet(mPlayer.getX()-plusX, mPlayer.getY()+plusY, 8, 8, this.mGameController.mBulletTextureRegion, this.mPhysicsWorld, mPlayer); mBulletList.add(mBullet); //System.out.println("size is :" + bulletList.size()); mScene.getTopLayer().addEntity(mBullet.getSprite()); mSoundManager.playGunShot(); } What is defect here?? it does not fire bullet from ship's nose?? What can be done..??
Jul
11
comment How to fire a bullet in a specific direction?
how to find the ship's nose position value.??
Jul
9
asked How to fire a bullet in a specific direction?