Posted: 10th Jul 2003 17:18
I have made this gravity demo for DBPro, but u must ensure that the floor u have is an object-this is good since it lets u design ur floor the way u want it in the same prog u use to design ur objects. One prob though: notice that when u jump it isn't exactly smooth... maybe somebody will help to fix it...
Posted: 10th Jul 2003 22:05
The jumping is fine, its smooth here

Well done.
Posted: 10th Jul 2003 22:30
Great - jumping is smooth on mine too.

Any chance of putting in like 5 moving plaforms to jump between?!

Posted: 11th Jul 2003 0:13
No try holding down the space key and it seems that for a fraction of a second the cylinder goes a bit lower than the surface....doesn't this happen on your machines?

EVERYONE SEEMS EAGER TO DROP IN AND GET MY CODE BUT NOBODY CARES TO HELP ME SOLVE THE PROB! IT IS A PROB I TESTED IT ON OTHER PCs, SO WHETHER U REALISE IT OR NOT, THE CODE IS FAULTY!
Posted: 11th Jul 2003 0:30
it happens while the cylinder lands and touches the box...
Posted: 11th Jul 2003 17:58
EVERYONE SEEMS EAGER TO DROP IN AND GET MY CODE BUT NOBODY CARES TO HELP ME SOLVE THE PROB! IT IS A PROB I TESTED IT ON OTHER PCs, SO WHETHER U REALISE IT OR NOT, THE CODE IS FAULTY!


I'm sorry but if we can't see the problem then we can't help you. Please don't get angry, it won't get you far on these forums. And no, we don't want to cash in on your code either.
Posted: 11th Jul 2003 18:19
It seems a little strange that you'd reset the gravity on every collision, why not try it without setting the gravity on the collision check, except when the Y collision check comes into play.

If you jumped at the side of a box, it'd stop in mid air for a second - maybe that's the problem. I don't have DB handy right now, so I can't check it properly for you.


Van-B
Posted: 12th Jul 2003 2:04
You need DBPro to see the prob...as the black thing hits the white 'ground', it seems for a fraction of a second that something weird happens-the black thing get repositioned, then goes back to where it is supposed to be...actually a guy who came to my house needed a few times to realise that what I said was actually happening...so u look at it carefully 2...remember it is DBPRO.
Posted: 12th Jul 2003 23:25
Van Bthanks for the idea though!
Posted: 12th Jul 2003 23:34
Van B is this what u meant:
if object collision(1,0)>0 and get object collision y()>0
dec posx#,get object collision x()
dec posy#,get object collision y()
dec posz#,get object collision z()
playergrav#=0.0

endif

because it doesn't work the cylinder falls...
Posted: 12th Jul 2003 23:35
Woo-hoo! I tried this:
if object collision(1,0)>0 and get object collision y()<0
dec posx#,get object collision x()
dec posy#,get object collision y()
dec posz#,get object collision z()
playergrav#=0.0

endif
AND IT WORKED!!!!!!
still got the original prob though....