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 / Help with my sliding collision code

Author
Message
Twu Kai
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 2nd Apr 2006 17:27
I'm using DBPro, and I've made a fairly simple sliding collision code.
It's a bit flickery, as in, when I go onto a point of an object, it jumps to another side, how can I improve my code?

The function:


And an example:


Help would be nice!

I came, I saw, I programmed!
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 2nd Apr 2006 21:10
Umm...Is this supposed to happen?



FunkyStickmen: Battle of the Races (1%)
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 3rd Apr 2006 01:27
I'm sorry I ended up not using any of your previous function. I think it is an improvement but it isn't perfect.



Insanity is just a state of mind
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 3rd Apr 2006 15:42
Download newton (physics plugin) and use that, it is good, and its free!!!

Who is general failure, and why is he reading my c: drive?
Twu Kai
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 3rd Apr 2006 18:54 Edited at: 3rd Apr 2006 18:55
@Image All
It uses the center point of each object, you can change where it stops with the x and y start and ends to make it look better.

@Daemon
Wow, thank you very much! I'll put you in the credits of any future games using that function!

@monotonic
I might do... It's quite fun to make your own sliding collision functions though!

@everyone
Thanks!

I came, I saw, I programmed!

Login to post a reply

Server time is: 2024-09-24 19:21:06
Your offset time is: 2024-09-24 19:21:06