Page 1 of 1 [ 3 posts ] 

thomas81
Veteran
Veteran

User avatar

Joined: 2 May 2012
Age: 45
Gender: Male
Posts: 5,147
Location: County Down, Northern Ireland

13 Apr 2013, 7:40 pm

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.


_________________
Being 'normal' is over rated.

My deviant art profile


Last edited by thomas81 on 14 Apr 2013, 12:47 pm, edited 1 time in total.

naturalplastic
Veteran
Veteran

User avatar

Joined: 26 Aug 2010
Age: 71
Gender: Male
Posts: 35,189
Location: temperate zone

14 Apr 2013, 7:10 am

Didnt know they had game maker software.

How does that work?

What kind of things can you design with it.

Not interested in 'action'- not into looking through crosshairs and being a soldier shooting bad guys.

More into general and admiralship- units or warships maneuvering across a big map.



thomas81
Veteran
Veteran

User avatar

Joined: 2 May 2012
Age: 45
Gender: Male
Posts: 5,147
Location: County Down, Northern Ireland

14 Apr 2013, 1:02 pm

If you have the pro version, you can make almost anything.

Its a cheap engine so while its capable of 3d it isn't the best. Certainly not unless you learn how to program. My main grievance is that while the drag n drop facility significantly reduces the barrier to entry, its impossible to do much without knowing GML. Unfortunately GML is a proprietory language so its often awkward to find tutorials and source code.


_________________
Being 'normal' is over rated.

My deviant art profile