dropping bomb, fixed location?

I'm having an issue dropping a bomb and having it explode. Here is the issue:
I drop the bomb by interpolating it down into the camera view.. the issue here is, when the player moves left or right, so does the bomb.. as it's falling, it's moving its X with player X (Because its on the layer that is not scrollable)
If I put it on a different layer, it will drop straight, but off the screen.
I want to be able to have my actor control camera, and when the bomb is dropped it will come straight down where it was when the player presses the bomb button,and the explosion happen in front of the bomb.
Thanks for any help
I drop the bomb by interpolating it down into the camera view.. the issue here is, when the player moves left or right, so does the bomb.. as it's falling, it's moving its X with player X (Because its on the layer that is not scrollable)
If I put it on a different layer, it will drop straight, but off the screen.
I want to be able to have my actor control camera, and when the bomb is dropped it will come straight down where it was when the player presses the bomb button,and the explosion happen in front of the bomb.
Thanks for any help
Comments
I have an actor off screen. I'd like it so that the actor will move to the position of the main actor at the moment 'press' is made. Not move from left to right as my actor moves left to right.
Basically, botton press, bomb drops to the exact location (or toward) where my actor was when button was 'pressed'
Thanks for any help, willing to try anything.
Create 2 attributes FingerPressX & FingerPressY
Rule: When touch is released, change game.fingerpressX to game.touchX and change game.fingerpressY to game.touchX
Rule, when touch is released spawn & interpolate the bomb(s) position to fingerpressX & fingerpressY
Matt
Try it & tell me if it works.
When the player moves, I'd like the bomb to still travel to his location when I pressed, and not follow him.