- Home /
Help with fps script
im making a fps i have the movement scripts and made a gun movement script so the gun moves realistically but i need someone to tell me how i would make the gun move when i jump of something like it will bob down then come back up but i want to know how i would do that thanks sorry if you dont understand its abit hard to explain oh and its in javascript by the way.
Answer by venhip · Nov 23, 2012 at 08:22 PM
If you're doing animations I always find it helpful to approximate the movement in real life and think about how you move: Get a pen and hold it like a gun then jump off something. You may look a little silly doing it but its worth it if you get better animations.
Answer by Griffo · Nov 23, 2012 at 08:06 PM
I would use an animation of the gun going down then coming back up, I'd use a boolean to check when the player jumps and when set true the animation would play, and put the animation on layer 2 so it has priority over any other animations you are using like head bobbing, walking, idle .. ect
but say if i only fell down only little abit and fell of a building how would i change the diffrent height of it going down
On the Asset store is Ultimate FPS Camera, it's worth a look, it uses something called spring physics that will give you a distance depending on how far / hard you jump.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
FPS controller, only for use on object 0 Answers
Player Controller Rotation Script Help 2 Answers
FPS Gun movement problem 0 Answers
aim script error 1 Answer