As the title describes, I simply cant make the cannon aim the way I want it to. I've done the first tutorial on the website, where you make the player(gun) aim where the mouse is, but that does not work with what I am trying to do now.
To start with, I'd like the cannon to be stuck to the cannon-holder when it rotates. I thought I made it work by placing the image-point on the lower end on the cannon, but when I do that the bullets comes from the same spot, so it doesnt look right. If I place the image-point at where the bullets should come from (as we learn in the first tutorial), then the rotating looks weird. (you'll understand better once you take a look on the game and the .capx file).
Then I'd also like the cannon to face the other side of the mouse instead of looking towards it. So, if my mouse is on the right side of the cannon, the cannon will aim left. If the mouse is on the left side, the cannon aims right. If the mouse is under the cannon, the cannon aims upwards and so on. And the last thing is that, I want it to do that only when I click on the cannon (and/or on the cannon-holder) and hold the button down. But I cant find that option under the conditions in mouse.
Any idea on how I can make it work?
.capx file: https://dl.dropboxusercontent.com/u/11888452/cannon.capx