I'm building a top-down style helicopter game where the Up/Down arrows control the sprite, up and down. Left and right arrows rotate the BG clockwise and counterclockwise. There are three layers (Background, Main and UI).
My question is how can I spawn bullets from my helicopter on the main layer towards destructable buildings on the Background layer? Impossible?
The two methods I tried:
Spawning the bullets on the background layer. I couldn't get the angle of trejectory to match the helicopter angle. Rather than shoot at the angle of my helicopter (on a different layer) the angle would be inverted.
Then I tried putting the buildings on the main layer with the helicopter. When on screen, the buildings would rotate around their set postion. I couldn't get the sprites to mimic the rotation of my background layer.
.capx- http://c2.originalspaces.net/apache.capx
Buildings at y-axis 3400 (fly north). The two event sheets "Apache Controls" and "Game Events" contain the relevant actions.
Controls: Up, Down, Left, Right, Ctrl, Space