|
I'm making a normal FPS game and some of my scripts are saying " found ''." and I know this is a simple problem but i need some help. Also, if someone could help me, how do you make a "gun" show up on the screen? Thanks, John
(comments are locked)
|
Adding the CrosshairFirst step is to add in the crosshair.
Note: Do not make the crosshair a child of anything that moves. Adding the GunGetting the gun to follow the camera is just as easy as getting your camera to follow your player.
Avoiding a Clipped GunThis will have the gun still visible even though it passes though walls and objects.
Adjusting the CrosshairThis is a pretty neat trick to finding the center of your screen, and thus moving your crosshair to the right place.
And there you have it! By now you should have:
this worked perfectly, thanks i needed help with this too
Feb 20 '11 at 10:41 PM
Bob 9
(comments are locked)
|
|
For a crosshair, you could create a simple GUI Texture. To do this,
To make the gun GameObject move with the camera, you want to make it a child of the camera (or vice versa) in the hierarchy. Hope this helps!
(comments are locked)
|
|
If a script is telling you ' found "." ' it means that you have an error in syntax. Usually, you've missed a semicolon or parenthesis somewhere and made the compiler get confused. If you post a code sample I can help you fix the syntax. thanks but i got it now
Nov 28 '10 at 06:09 AM
John 20
(comments are locked)
|

Could you be more specific, please? What do these scripts do? How do you want the gun to show up on the screen - in a GUI, as a 3D model, etc.?
well i got it to show up but now i need it to move with the camera and also i need a crosshair