How to make gun stick around

when i click the player and put in the camera, and extend what the player can see and move through the gun wouldnt point where the mouse is. it points behind the player sprite. how do i fix this.
picture below.

Extract the mouse position using mouse move and put it into pointat.

1 Like

Screenshot 2022-02-07 10.19.06 AM

Screenshot 2022-02-07 10.21.53 AM
here the code

the code is suppose to be like that right??

the problem is if the character moves forward the gun or weapon will go behind the character. if mouse points forward it would not

Is the gun extracting the player’s position so it stays with it?

Try clicking on the point at block, then select game coordinates instead of screen

1 Like

it works thank you! :slight_smile:

1 Like