Hello,
once again i need help from the community.
In one of my levels, the user can trigger a shot by touching the screen. That works so far.
But at certain angles the shot does not appear on the cannon but on the top right or top left, depending on where the player is on the screen.
I have attached 2 sample pictures to illustrate the problem. The last picture is the code I use for this.
Maybe someone can tell me what I'm doing wrong or how I can solve it better so that the shot is created exactly at the cannon.
Kind regards, Thomas