This is help for FunnyAnimatorJimTv's 3D engine. This is not a full game and the 3D code is made by @FunnyAnimatorJimTv and @TheGreenFlash. Basically, the gun will always point towards the red dot by converting the dot's 3D coordinates to 2D screen positions and then using a 2D rotation formula to set the direction.