[quote:2gifubnp]You are genius, Sir! Solved!.
heliogame Your welcome, there's a bug if we are shooting at the top limit angle.
From all of this I think you will get the idea of how to apply it and fine tune those number to fit your game.
But if you still need help just tag me.
newlee, sorry to bother you again, I got 2 problems that i really cannot resolve.
1. I cannot fix the bug when we are shooting to the right side of the player (a,d) at the top limit angle or at bottom limit angle. The gun cannot set at the real top limit or real bottom limit.
2. Oh, I am stuck again with this shooting left , the bullet shoots always right. I know how deal with it when I know an actual angle of the gun, but this is not the case of the fixed angle.
I attached the sample capx of my problem .