Having a problem with firing a bullet

I don’t know if this is the code I’m supposed to be using but I used the following code to set the bullet where my plane is but the problem is that the bullet stays in the same place from right after you start moving the plane with the joystick.

How do I make it so the bullet actually follows where the plane goes? One more thing the bullet spawns over the plane ship.
How do I fix that?

Just to let you know, I’m using the plane variable from another lua file and I’m using the joystick thing by Matthew.

[lua]local bullet = display.newImage(“bullet.png”)
bullet.isBullet = true
physics.addBody( bullet, “kinematic”, {friction = 0.3, gravity = .0000001, bounce = 0.3} )

–I couldn’t get the bullet to stay in place when I added physics(it kept on dropping) so I made it Kinematic. Can it collide with other kinematic objects?

plane.plane:setReferencePoint( display.CenterReferencePoint )
bullet:setReferencePoint( display.CenterReferencePoint )

bullet.x = plane.plane.x
bullet.y = plane.plane.y [import]uid: 54001 topic_id: 12176 reply_id: 312176[/import]

you don’t have any animation on your bullet (transition), so it’s stuck at where you’re plane was. Try creating it a little ahead of the plane (add some valor to the y of the plane) [import]uid: 44010 topic_id: 12176 reply_id: 44296[/import]