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 Professional Discussion / How to use a slope

Author
Message
Graysire
12
Years of Service
User Offline
Joined: 18th Oct 2013
Location:
Posted: 24th Feb 2014 19:40
so how would I go about making my object go down a slope and accelerate over time? I know that I would need variables and going down and over a certain amount. But how?
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 24th Feb 2014 20:14
Hi Graysire. This is easy, just comparing points in front and on one side of you object. Take a look to this example, and you can adjusted to your needs.




I'm not a grumpy grandpa
Graysire
12
Years of Service
User Offline
Joined: 18th Oct 2013
Location:
Posted: 25th Feb 2014 18:53
Ah thanks. A few hours after I posted this we figured it out though . didn't get a chance to post it.

Login to post a reply

Server time is: 2026-07-06 20:16:46
Your offset time is: 2026-07-06 20:16:46