How can i make a crosshair?

As stupid as this sounds, I can’t make a crosshair. I can get it centred according to position but when I press play and go in first person my mouse is quite far off my crosshair. Sorry for the short info as I am on phone. How can I make this work? If anyone could give more of a step by step kinda tutorial way to do it I’d really appreciate it.

Thank you!

GalaxyWorld

1 Like

Make sure your crosshair image is in the center and not to the left or right or anything like that. Only then it will sync with the position of the mouse.

That’s what I tried. I think it has something to do with top bar offset and the new UI update messing it up. Thanks for trying to help though :smiley:

Are you using offset or scale for the position? Try setting the crosshair’s anchorpoint to 0.5,0.5 and then the position to 0.5,0,0.5,0. Not sure how this would be affected by the new topbar though. I’d assume it’d be the same as always though.

I set the scale position to 0.5,0.5 then it goes farely close to the centre then if Ibset anchor point it flies off to the left and up.

Can you show me the hierarchy of the crosshair?

I came up with an experienced but perfect solution.

I have come up with a solution with my friend. I shall leave this as solved for now until any better ways come. How the script works, is it gets the players screen size and divides x and y by 50 to get he centre of the screen. It then moves the crosshair to the point so it will be PERFECT in any screen size. As I said, it can be hard to do and I think there must be a better way.

3 Likes