Movement Up / Down

Blitz3D Forums/Blitz3D Beginners Area/Movement Up / Down

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

How would I make the code for the camera to go up & down on the Y line? Here is what I have and it is not working. Im using the Page Up/Page Down buttons. It is the last two lines of the function for moveentity.
Thanks!

Function object_key_control( obj )
If KeyDown( 200 )=True Then MoveEntity obj,0,0,1
If KeyDown( 208 )=True Then MoveEntity obj,0,0,-1
If KeyDown( 203 )=True Then TurnEntity obj,0,2,0
If KeyDown( 205 )=True Then TurnEntity obj,0,-2,0
If KeyDown( 201 )=True Then MoveEntity obj,0,1,0
If KeyDown( 209 )=True Then MoveEntity obj,0,-1,0
ex#=EntityX(obj):ez#=EntityZ(obj)
PositionEntity obj,ex,TerrainY( land,ex,0,ez )+5,ez
End Function