First of all, let me thank the devs and supporters of C2 for a brilliant product and awesome resources in the forums. I'm completely new at the coding part and I'm slowly trying to learn the ropes.
Here's what I'm trying to achieve in my 2d platformer:
1: Pin weapon sprite to player and have its mouse aim angle limited to between 300? and 60?, facing the direction of the player (left/right). Whenever outside the angles it should simply not turn further.
2: Have player and weapon turn whenever the mouse is opposite current facing direction (eg. left/right).
imgur.com/PEqR4RI
I sort of understand different ways to approach this, but the solutions I come up with seem bloated and hacky, with the gun acting all wonky. I was hoping that I could get some samples or assistance to look at.
Thanks!