In a 2-D system, increasing the Y value goes DOWN the screen and decreasing it goes up.
In a 3-D system, increasing the Y values goes UP off the ground level, and decreasing it goes down. Of course, there is the added complexity that the camera can be positioned anywhere in the co-ordinate space, can have any UP orientation, and can be directed to look at any point.
So I'm practicing basic coding with dark basic professional but when I jump I go down instead of up if you know the solution to my coding error please tell me what it actually is ;)
sync on
sync rate 60
Load()
rem vars
jump#=10
Rem Fog
backdrop on
color backdrop RGB(128,128,128)
Rem Matrix
make matrix 1,500,500,20,20
prepare matrix texture 1,1,20,20
randomize matrix 1,75
update matrix 1
Rem Main Loop
do
control camera using arrowkeys 0,1,1
if keystate(57)=1 then Jump#=30 and nojump#=1
if jump#>10 and nojump#=0
jump#=jump#-1
ENDIF
if jump#=10 then no jump#=0
X#=Camera position x()
Z#=Camera position z()
Y#=Get ground height(1,X#,Z#)
position camera X#,Y#+jump#,Z#
sync
loop
Well that's the code if there's any errors can you correct them for me ;) thanks for your time