Making a sidescroller, in 3d.
Ive got a sphere moving across the screen, and boxes with collision in the way.
Based on my exisiting code (following on from the "3D Monster Hunt" tutorial), how can i make the object jump over the boxes?
Rem Setup sync
set display mode 800,680,32
Sync On
Sync Rate 60
Rem Make Cubes and place randomly with collision
For x = 1 to 5
Make object cube x,100
Position object x,Rnd(11),0,Rnd(2000)
Set object collision to boxes x
Next x
Rem Make sphere with collision
Make object sphere 10,50
Position object 10,0,0,0
Set object collision to spheres 10
Rem Main loop
Do
Rem Control input for camera
If RightKey()=1 then Move object 10,10
If LeftKey()=1 then Move object 10,-10
rem - setup collision detection
If object collision(10,0)>0 then position object 10,X#,0,Z#
Rem get player object position and store in X# and Z#
X# = Object position x(10)
Z# = Object position z(10)
Rem get new camera position and store in cZ# and cX#
cZ# = Newzvalue(Z#,aY#-200,1000)
cX# = Newxvalue(X#,aY#+90,1000)
Rem position camera
Position Camera cX#,200,cZ#
Rem point the camera at the player object Point camera X#,50,Z#
Point camera X#,50,Z#
Rem Refresh Screen
Sync
Loop