I'm making a 2d third person shooter. I want a set of crosshairs, that will stay in front of the player controlled character about 30 pixels away wherever it is facing, corresponding to arrow key presses. I cannot work out the correct code for this. I have tried using Cartesian coordinates but the gunsight is just drifting off the screen and not stopping.
If anyone is familiar with GML, I would be incredibly grateful.
Last edited by thomas81 on 14 Apr 2013, 12:47 pm, edited 1 time in total.