Crosshair and player turning
Posted: Mon May 07, 2018 5:14 am
How make crosshair move in some area on screen, if player move mouse, before actualy turn player?
If I badly explained what I want, heres a picture. Crosshair should be inside red circle(maybe not so large) all time, and must move freely inside this circle. Crosshair still constrolled by mouse/joystick "mushroom"/touchpad/etc.
Optionaly, change direction of shoot bullets, so they fly in direction where crosshair aim, but I think I can found workaround for this.
But player must and should turn only if crosshair try to go out of bound of this red circle. Like, if crosshair tries to go beyond the most upper borders of circle - player camera turns up, most left border - turn left, down border - turn down, south-west border - turn in south-west direction, etc.
I remember I see something like this before, but it was made using acs script, and I need zscript version.
If I badly explained what I want, heres a picture. Crosshair should be inside red circle(maybe not so large) all time, and must move freely inside this circle. Crosshair still constrolled by mouse/joystick "mushroom"/touchpad/etc.
Optionaly, change direction of shoot bullets, so they fly in direction where crosshair aim, but I think I can found workaround for this.
But player must and should turn only if crosshair try to go out of bound of this red circle. Like, if crosshair tries to go beyond the most upper borders of circle - player camera turns up, most left border - turn left, down border - turn down, south-west border - turn in south-west direction, etc.
I remember I see something like this before, but it was made using acs script, and I need zscript version.