okay so im working on an fps shooter i know how to make walls, bulding that kind of thing. but im wondering how do i make it so i aim where my mouse is? here is my code for fps so far
MAKE MATRIX 1, 500, 500, 25, 25
PlayerX = 0
PlayerY = 0
PlayerZ = 0
playerX = OBJECT POSITION X(1)
PlayerY = OBJECT POSITION Y(1)
PlayerZ = OBJECT POSITION Z(1)
SET CAMERA TO FOLLOW locationSphereX#, locationSphereY#, locationSphereZ#, 25, 2, 10, 10, 1
if upkey()=1
MOVE OBJECT 1,.5
locationSphereX# = OBJECT POSITION X(1)
locationSphereZ# = OBJECT POSITION Z(1)
locationSphereY# = GET GROUND HEIGHT(1, locationSphereX#, locationSphereZ#)
ENDIF
if downkey()=1
MOVE OBJECT 1,-.5
locationSphereX# = OBJECT POSITION X(1)
locationSphereZ# = OBJECT POSITION Z(1)
locationSphereY# = GET GROUND HEIGHT(1, locationSphereX#, locationSphereZ#)
ENDIF
if leftkey()=1
turn object left 1,.7
ENDIF
if rightkey()=1
turn object right 1,.7
ENDIF
is it possible to do this without changing the code too much? is there any easy way or just a way
thanks,