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 / making player stop at an angle?

Author
Message
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 1st Feb 2006 01:01
yo!
i want to make the player STOP moving when it gets to a certain height or angle. here is my code:



SirFire
19
Years of Service
User Offline
Joined: 4th Apr 2005
Location: North America
Posted: 1st Feb 2006 01:24 Edited at: 1st Feb 2006 01:27
for keeping below an altitude:

Change the "10"s to whatever altitude you want to stop at.
For keeping away from certain incline angles:

It's not perfect but you will get the idea.
Here's both of those placed in your code:

I didn't try it out. If that works, great. If it doesn't, sorry.

Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 1st Feb 2006 03:24
thanks sirfire. it didnt work (turn object isnt a command) but thanks for trying!

-Snowfall

=ChrisB=
19
Years of Service
User Offline
Joined: 23rd Jun 2005
Location: starring into a viewfinder
Posted: 1st Feb 2006 07:49
Your welcome!

Your signature has been erased by a mod, because the mod was so jealous of it that he couldnt bare looking at it.
SirFire
19
Years of Service
User Offline
Joined: 4th Apr 2005
Location: North America
Posted: 1st Feb 2006 11:41 Edited at: 1st Feb 2006 11:42
oh *smacks forehead*, put LEFT at the end of the first TURN OBJECT and put RIGHT at the end of the next TURN OBJECT
turn object left
turn object right

Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 1st Feb 2006 16:15
hmmm. do you use DBC. cause i used DBP... and your code just made my character always move dash off teh map. hehe

~snow

SirFire
19
Years of Service
User Offline
Joined: 4th Apr 2005
Location: North America
Posted: 1st Feb 2006 16:22 Edited at: 1st Feb 2006 16:23
I use dbp. Be sure and set the height correctly or it will do that.
Try setting it to 100 and then easy your way down.

Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 1st Feb 2006 16:24
nope. does the same thing if i set it to 30,000

smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 1st Feb 2006 17:44
hi snowfall...
i didn't run the code but this may be a pos prob,
Quote: "`make it so that the character stays above the matrix
if player position y(1)>10"


it should be
Quote: "if player position y(1)<10"

for staying above the matrix

life's one big game
spec= 1.6ghz, 512mb ram, 128mb gpu, directx 9.0c, dbpro and classic
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 2nd Feb 2006 03:32
In 3D the Y coordinate gets larger the higher the position.

Login to post a reply

Server time is: 2024-09-24 15:24:37
Your offset time is: 2024-09-24 15:24:37