I am developing a simple world creation engine for an adventure game I'm working on. However, I am trying to make the cursor object move up and down the y axis on a keypress, but it stays at its default y position of 0. the other movement works fine.
do
ox#=object position x(1)
oy#=object position y(1)
oz#=object position z(1)
if upkey()=1 then move object 1,2
if downkey()=1 then move object 1,-2
if leftkey()=1 then turn object left 1,2:dec ang,2
if rightkey()=1 then turn object right 1,2:inc ang,2
if spacekey()=1 then oy#=oy#+1
if shiftkey()=1 then oy#=oy#-1
ang=wrapvalue(ang)
set camera to follow ox#,oy#,oz#,ang,30,10,10,0
sync
loop
it's definitely a noob-type mistake, but I am not a noob!
"Fight the good fight of faith,
Lay hold on eternal life"
-1 Timothy 6:12