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.

DarkBASIC Discussion / Going up hills

Author
Message
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 3rd Aug 2004 10:55
Ok, I've been trying to get this to work, but could someone give me snippet or just give me a hand at making it so that when an object climbs a hill that it slants into the slope.

It's amazing how much TV has raised us. (Bart Simpson)
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 3rd Aug 2004 22:41
I think that would involve positiong at least two points on both sides of your object. The points being objects that collide with the ground. Then if a point doesnt touch the ground, then rotate the main object accordingly. I'll work on a snippet.

PS, what happend to your fanboy sig?

Infra-Dark
#coding, like coding, but with a #
http://www.knova.dbspot.com/
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 4th Aug 2004 01:00
Quote: "what happend to your fanboy sig?"
Too big, working on a new banner for my new game.

I figured it would be something like that, thanks

It's amazing how much TV has raised us. (Bart Simpson)
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 4th Aug 2004 23:36 Edited at: 4th Aug 2004 23:37
Ok, I'm very stumped right now. This code
Won't work. He just pitches up and down, over and over again, the effect will be more visible if you change all the 0.1's to 1's. The object 1 is the player, 256 and 257 are invisible objects in front and behind him.

PS: This is in DBC

It's amazing how much TV has raised us. (Bart Simpson)

Login to post a reply

Server time is: 2025-05-25 17:07:10
Your offset time is: 2025-05-25 17:07:10