Progress 6


As I mentioned before, I was having issues with switching bodies. The gun could still shoot from the old one, and when switching back, the gun was out of position. I found the solution. The problem was that the shooting script didn’t check if it belonged to the currently active body. Also, when switching back to the original body, the weapon was getting misaligned because it wasn’t synced correctly with the camera. The fix was to make sure the gun script only works when it's part of the active body, to disable the gun and its visuals when changing bodies, and to add a script that makes the weapon follow the camera only when it’s active.

Leave a comment

Log in with itch.io to leave a comment.