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.

Dark GDK / One really hard problem, or at least for me...

Author
Message
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 7th Jun 2008 18:09 Edited at: 7th Jun 2008 18:11
I have a map-
sorry, not really sure how to have an image in the middle of the post....

And as you can see, it has a huge canyon in the middle, then slopping walls. I need a method that if the players y axes height is 10 less then the walls height, it can't go over it. But if it is only 5 less, it can using the dbGetTerrainHeight. By the way, is there like a dbGEtTerrainHeight mthod for 3d Objects?

I think while writing this I figured out my problem. I think it should go something like this- But I am not sure.

if ( dbObjectPositionY ( 1 ) > OldY ){
dbPositionObject ( 1, oldX, oldY, OldZ );
}

I thinks that should work... Also, how would you set it so that it says if ( dbObjectPositionY ( 1 ) is >10 then OldY ){?

It needs to say that if the object position is 10, or more, greater then OldY, move back.

thanks

~~Its not about what you know, its about how you figure it out.~~

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-10-07 21:32:00
Your offset time is: 2024-10-07 21:32:00