when i move the up arrow key, my object moves to the left (increasing my z coordinate instead of my x) what am i doing wrong?
player object :
make object box 900,50,50,50
set object collision on 900
`hide object 900
position object 900,2689,0,2409
movement control
AngleY# = object angle Y(900)
if upkey() = 1
X#pos = newxvalue(x#,AngleY#,20)
Z#pos = newzvalue(z#,AngleY#,20)
move object 900,10
endif
x# = object position x(900)
z# = object position z(900)
y# = get ground height(1,x#,z#)
position object 900,x#,y#,z#
cameraz# = newzvalue(z#,AngleY#-100,100)
camerax# = newxvalue(x#,AngleY#-100,100)
cameray# = get ground height(1,camerax#,cameraz#)
position camera camerax#,cameray#+25,cameraz#
point camera x#,y#+10,z#
thanx in advance to anyone
You're ate up like a soup sandwich.