Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Can anyone help with this code?

Author
Message
vivi
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 24th Apr 2003 21:29
OK Ill get to the point i want to have a jump sequence in this piece of practice code.

Can anyone help and explain why they said to do this ( so i can understand why you did it)

thanks again for any help you can give
WHY WAIT FOR GAMES.......MAKE THEM COME TO YOU
>>>>www.sharksoft.scripterz.com<<<<<
THANKS IN ADVANCE
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 25th Apr 2003 01:57
Have you actually run this piece of code? It will end almost immediately.

I'm not adding the 'jump sequence' - just getting it working in its current form. See ... notice the return commands to go back to where you gosub'ed from?
Bluedeep
21
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Finland
Posted: 25th Apr 2003 11:20
And fix this:
x#=object position x (1)
y#=object position x (1)
z#=object position x (1)
to this:
x#=object position x (1)
y#=object position y (1)
z#=object position z (1)
for me This kind of errors come when i use lot of copy/paste. x-d
Bluedeep
21
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Finland
Posted: 25th Apr 2003 12:23 Edited at: 25th Apr 2003 12:34
Ou... and that jump code:

First you must do that the object don´t drop below ground height

then jump using real physics:

You can chance gravity, objectmass and jumpforce so that jumpping feels right.
vivi
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 25th Apr 2003 21:31
I have a problem.
The get ground height command doesnt work it sill needs the x,z in the brackets what should i put the
And can you break down the real physics code so i can understand it

WHY WAIT FOR GAMES.......MAKE THEM COME TO YOU
>>>>www.sharksoft.scripterz.com<<<<<
THANKS IN ADVANCE
Bluedeep
21
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Finland
Posted: 28th Apr 2003 13:19
äh... stupid me.
Chance gh#=get ground height(1) to gh#=get ground height 1,object position x(1),object position z(1)
now it works [b])

and the gravity with rems:
GameKit
21
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 28th Apr 2003 17:35
hmmm... you don't have any return commands after all the gusub sections... try this...

Anyone Can Destroy...But Few Can Create...
Bluedeep
21
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Finland
Posted: 2nd May 2003 13:12
Game_Creator, are you sure you read IanM´s post?

Login to post a reply

Server time is: 2024-11-24 13:04:31
Your offset time is: 2024-11-24 13:04:31