Keep in mind that
move object moves an object relative to it's current position, as well as where it's facing. That means you'll need to use the free flight commands, like
turn object left, before using
move object. Personally, I don't think that's the right approach. Instead, keep tabs on your player's position and affect it like so (just 2 dimensions for the moment for simplicity's sake)...
if spacekey()=1:
velocityY# = 10.0
state$ = "jumping"
endif
if state$ = "jumping":
dec velocityY#, 0.5 `-- this will have a gravity-like effect
inc playerY#, velocityY# `-- adjust the player's height
endif
if playerY# <= 0.0: `-- has the player landed?
playerY# = 0.0 `-- set this to whatever the ground height should be
velocityY# = 0.0 `-- stop the decelleration
state$ = "landed" `-- make the above 'if' fail ...
endif
position object 1, playerX#, playerY#, playerZ#
This should show you the basic method for implementing jumping/gravity.
Can I ask you a Question?
What is it?
It's an interrogative form of sentence, used to test knowledge. But that's not important right now.