Fps.starter Crosshair Problem
by Mark Junior · in Torque Game Engine · 10/27/2006 (11:41 am) · 20 replies
Hi, Recently ive noticed that when i shoot on fps.starter the projectile shoots a little bit under the crosshair instead of on the crosshair. how can i fix this?
Anyhelp acceptable thank you.
From: Saska
Anyhelp acceptable thank you.
From: Saska
About the author
#2
11/04/2006 (2:43 am)
Umm... ok.... how would i change the bullet to have 0 gravity so it goes straight and doesnt start dropping altitude.
#3
BIG EDIT: OOPS!!!! I meant gravityMod = 0;
11/04/2006 (3:28 am)
Well, saying it was the crossbow, go to line 315 (something close to that anyways) and change gravityMod = 0.80;to
gravityMod = 0;Hope I helped! ^^
BIG EDIT: OOPS!!!! I meant gravityMod = 0;
#4
11/04/2006 (3:31 am)
Whats with your ^^ :D? ill tell you if it worked
#6
11/04/2006 (3:36 am)
It didnt work it just makes the gravity higher so it pops harder to the ground , though i changed it to 0 then it goes straight and doesnt drop but it still launches from below the crosshar a little...
#7
Just move the crosshair down a little
EDIT: Also, is the projectile hitting excactly where the crosshair is aiming at?
Or is it hitting a bit lower too?
11/04/2006 (3:44 am)
Hmmm... press f10 during a mission, and you should be in the playGui.Just move the crosshair down a little
EDIT: Also, is the projectile hitting excactly where the crosshair is aiming at?
Or is it hitting a bit lower too?
#8
The crosshair, as it's presently set up, is basically a bitmap in the center of the screen. It has no idea where you are aiming. However, there is a resource that puts the crosshair where the weapon is aiming. I can't remember the resource name or link, though a search should find it.
11/04/2006 (4:37 am)
Quote:Hmmm... press f10 during a mission, and you should be in the playGui.
Just move the crosshair down a little
The crosshair, as it's presently set up, is basically a bitmap in the center of the screen. It has no idea where you are aiming. However, there is a resource that puts the crosshair where the weapon is aiming. I can't remember the resource name or link, though a search should find it.
#9
I think this is the one you're thinking of.
11/04/2006 (4:52 am)
3rd/1st Person Crosshair with ShapeName on itI think this is the one you're thinking of.
#10
it explodes a little below the crosshair too.
@micentro
k ill check that out
@mark
il also try your play gui thing
11/04/2006 (4:57 am)
@ markit explodes a little below the crosshair too.
@micentro
k ill check that out
@mark
il also try your play gui thing
#11
11/04/2006 (5:03 am)
Mincentro, in your resource you gave me. do you have to paste the code to the crosshairhud.cc or erase every code in crosshairhud.cc and then add the code from the resource?
#12
11/04/2006 (5:16 am)
You replace the contents of your guicrosshairhud.cc with the code from dburke's post, then recompile.
#13
I think you mis-understood me. If the projectile hits a little lower then the crosshair, move the crosshair downwards and it will hit at the crosshair. You get what I mean?
11/04/2006 (5:46 am)
@Dave DI think you mis-understood me. If the projectile hits a little lower then the crosshair, move the crosshair downwards and it will hit at the crosshair. You get what I mean?
#14
11/04/2006 (7:55 am)
Yes I get what you mean, I just wanted to express the fact that the crosshair was just a bitmap in the center of the screen, NOT actually where the weapon was pointing.
#15
11/04/2006 (7:56 am)
AAA! oh no! my now i replaced the code with the resources ones to crosshairgui.cc and now when i launch my game my game has a mouse on it. cant move my crosshair. i tried putting the original code in but still same thing.
#16
Now when in-game, resize the control to be the full size of the playGUI canvas with the sizing set to "Relative". Save it, go back into the game, and it should work fine. If it doesn't, I have no idea what could possibly be wrong.
11/04/2006 (3:18 pm)
Your guicrosshairhud should look like it does in dBourke's post. Don't use the one at the top of the resource.Now when in-game, resize the control to be the full size of the playGUI canvas with the sizing set to "Relative". Save it, go back into the game, and it should work fine. If it doesn't, I have no idea what could possibly be wrong.
#17
Oh, okay, but still, if you put the crosshair excactly where the projectile was hitting, it would work.
11/04/2006 (5:23 pm)
@Dave DOh, okay, but still, if you put the crosshair excactly where the projectile was hitting, it would work.
#18
11/04/2006 (6:05 pm)
Sure it would for most cases. In my particular situation this won't work. I needed to use the resource above to solve my problem.
#20
now i cant get it to fix though the mouse shows on the screen.
11/05/2006 (1:17 am)
Mincentro i accidently used the one from top of the page. :$now i cant get it to fix though the mouse shows on the screen.
Torque Owner Mark Grooby
Hope I helped! ^^