Progress 6
Puzzle FPS, learning experiment » Devlog
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.
Puzzle FPS, learning experiment
More posts
- Progress 54 days ago
- Progress 44 days ago
- Progress 34 days ago
- Progress 24 days ago
- Progress 14 days ago
Leave a comment
Log in with itch.io to leave a comment.